home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-2.iso / Files II / Prog / T / TransDisplay 3.05.sit / TransDisplay v 3.05 / Demos / C Demos / EventLog / EventLog.c next >
MacBinary  |  1994-02-21  |  29.0 KB  |  [TEXT/KAHL]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: EventLog.c

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Mon Feb 21 19:12:24 1994, modified Mon Feb 21 19:12:24 1994, creator Think C, type ASCII, 28261 bytes "EventLog.c" , at 0x6ee5 1206 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 45 76 65 6e 74 4c | 6f 67 2e 63 00 00 00 00 |..EventL|og.c....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 01 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 6e 65 00 | 00 04 b6 a9 8e fe 68 a9 |.....ne.|......h.|
|00000060| 8e fe 68 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..h.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 41 1e 00 00 |........|....A...|
|00000080| 2f 2a 0d 20 2a 20 4e 65 | 65 64 20 74 6f 20 64 69 |/*. * Ne|ed to di|
|00000090| 73 70 6f 73 65 20 6f 66 | 20 74 68 65 20 41 70 70 |spose of| the App|
|000000a0| 6c 65 20 45 76 65 6e 74 | 20 68 61 6e 64 6c 65 72 |le Event| handler|
|000000b0| 73 3f 0d 20 2a 0d 20 2a | 20 4e 65 65 64 20 74 6f |s?. *. *| Need to|
|000000c0| 20 63 68 65 63 6b 20 66 | 6f 72 20 6e 65 77 20 53 | check f|or new S|
|000000d0| 74 64 20 47 65 74 20 46 | 69 6c 65 20 72 6f 75 74 |td Get F|ile rout|
|000000e0| 69 6e 65 73 2e 0d 20 2a | 2f 0d 0d 2f 2a 0d 20 2a |ines.. *|/../*. *|
|000000f0| 20 45 76 65 6e 74 4c 6f | 67 20 2d 20 54 72 61 6e | EventLo|g - Tran|
|00000100| 73 44 69 73 70 6c 61 79 | 20 65 76 65 6e 74 2d 6c |sDisplay| event-l|
|00000110| 6f 67 67 69 6e 67 20 64 | 65 6d 6f 6e 73 74 72 61 |ogging d|emonstra|
|00000120| 74 69 6f 6e 20 70 72 6f | 67 72 61 6d 0d 20 2a 0d |tion pro|gram. *.|
|00000130| 20 2a 20 54 68 65 20 70 | 72 6f 6a 65 63 74 20 73 | * The p|roject s|
|00000140| 68 6f 75 6c 64 20 69 6e | 63 6c 75 64 65 20 45 76 |hould in|clude Ev|
|00000150| 65 6e 74 4c 6f 67 2e 63 | 20 28 74 68 69 73 20 66 |entLog.c| (this f|
|00000160| 69 6c 65 29 2c 20 54 72 | 61 6e 73 44 69 73 70 6c |ile), Tr|ansDispl|
|00000170| 61 79 2e 63 0d 20 2a 20 | 28 6f 72 20 61 20 70 72 |ay.c. * |(or a pr|
|00000180| 6f 6a 65 63 74 20 6d 61 | 64 65 20 66 72 6f 6d 20 |oject ma|de from |
|00000190| 54 72 61 6e 73 44 69 73 | 70 6c 61 79 2e 63 29 2c |TransDis|play.c),|
|000001a0| 20 54 72 61 6e 73 53 6b | 65 6c 2e 63 20 28 6f 72 | TransSk|el.c (or|
|000001b0| 20 61 20 70 72 6f 6a 65 | 63 74 0d 20 2a 20 6d 61 | a proje|ct. * ma|
|000001c0| 64 65 20 66 72 6f 6d 20 | 54 72 61 6e 73 53 6b 65 |de from |TransSke|
|000001d0| 6c 2e 63 29 2c 20 61 6e | 64 20 4d 61 63 54 72 61 |l.c), an|d MacTra|
|000001e0| 70 73 2e 0d 20 2a 0d 20 | 2a 20 30 38 20 4e 6f 76 |ps.. *. |* 08 Nov|
|000001f0| 20 38 36 20 50 61 75 6c | 20 44 75 42 6f 69 73 0d | 86 Paul| DuBois.|
|00000200| 20 2a 20 32 38 20 44 65 | 63 20 38 36 20 52 65 6d | * 28 De|c 86 Rem|
|00000210| 6f 76 65 64 20 77 69 6e | 64 6f 77 20 7a 6f 6f 6d |oved win|dow zoom|
|00000220| 69 6e 67 20 63 6f 6e 73 | 74 61 6e 74 73 2c 20 73 |ing cons|tants, s|
|00000230| 69 6e 63 65 20 4c 69 67 | 68 74 73 70 65 65 64 43 |ince Lig|htspeedC|
|00000240| 0d 20 2a 20 76 2e 20 32 | 2e 30 31 20 6e 6f 77 20 |. * v. 2|.01 now |
|00000250| 73 75 70 70 6f 72 74 73 | 20 74 68 65 6d 20 64 69 |supports| them di|
|00000260| 72 65 63 74 6c 79 2e 0d | 20 2a 20 30 31 20 46 65 |rectly..| * 01 Fe|
|00000270| 62 20 38 39 20 4d 6f 64 | 69 66 69 65 64 20 66 6f |b 89 Mod|ified fo|
|00000280| 72 20 54 72 61 6e 73 53 | 6b 65 6c 20 32 2e 30 2e |r TransS|kel 2.0.|
|00000290| 20 20 32 2d 62 79 74 65 | 20 61 6e 64 20 34 2d 62 | 2-byte| and 4-b|
|000002a0| 79 74 65 20 69 6e 74 65 | 67 65 72 0d 20 2a 20 74 |yte inte|ger. * t|
|000002b0| 79 70 65 73 20 61 72 65 | 20 74 79 70 65 64 65 66 |ypes are| typedef|
|000002c0| 27 65 64 20 74 6f 20 49 | 6e 74 65 67 65 72 20 61 |'ed to I|nteger a|
|000002d0| 6e 64 20 4c 6f 6e 67 69 | 6e 74 20 74 6f 20 65 61 |nd Longi|nt to ea|
|000002e0| 73 65 20 70 6f 72 74 69 | 6e 67 2e 0d 20 2a 20 30 |se porti|ng.. * 0|
|000002f0| 35 20 4a 75 6e 20 39 33 | 0d 20 2a 20 2d 20 55 73 |5 Jun 93|. * - Us|
|00000300| 65 20 53 6b 65 6c 44 6c | 6f 67 46 69 6c 74 65 72 |e SkelDl|ogFilter|
|00000310| 28 29 20 69 6e 20 44 6f | 41 62 6f 75 74 28 29 20 |() in Do|About() |
|00000320| 73 6f 20 74 68 61 74 20 | 75 70 64 61 74 65 20 65 |so that |update e|
|00000330| 76 65 6e 74 73 20 66 6f | 72 20 64 6f 63 75 6d 65 |vents fo|r docume|
|00000340| 6e 74 0d 20 2a 20 77 69 | 6e 64 6f 77 73 20 61 72 |nt. * wi|ndows ar|
|00000350| 65 20 73 65 65 6e 20 61 | 6e 64 20 6c 6f 67 67 65 |e seen a|nd logge|
|00000360| 64 2e 0d 20 2a 20 2d 20 | 43 6f 6e 76 65 72 73 69 |d.. * - |Conversi|
|00000370| 6f 6e 20 66 6f 72 20 54 | 48 49 4e 4b 20 43 20 36 |on for T|HINK C 6|
|00000380| 2e 30 2e 20 20 41 6c 73 | 6f 20 63 6f 6e 76 65 72 |.0. Als|o conver|
|00000390| 73 69 6f 6e 20 66 6f 72 | 20 54 72 61 6e 73 53 6b |sion for| TransSk|
|000003a0| 65 6c 20 33 2e 30 30 2e | 0d 20 2a 20 31 36 20 4f |el 3.00.|. * 16 O|
|000003b0| 63 74 20 39 33 0d 20 2a | 20 2d 20 41 64 64 65 64 |ct 93. *| - Added|
|000003c0| 20 73 6f 6d 65 20 73 75 | 70 70 6f 72 74 20 66 6f | some su|pport fo|
|000003d0| 72 20 4f 53 20 61 6e 64 | 20 68 69 67 68 2d 6c 65 |r OS and| high-le|
|000003e0| 76 65 6c 20 65 76 65 6e | 74 73 2e 20 20 4f 70 65 |vel even|ts. Ope|
|000003f0| 6e 20 41 70 70 6c 69 63 | 61 74 69 6f 6e 2c 0d 20 |n Applic|ation,. |
|00000400| 2a 20 51 75 69 74 20 41 | 70 70 6c 69 63 61 74 69 |* Quit A|pplicati|
|00000410| 6f 6e 2c 20 4f 70 65 6e | 20 44 6f 63 75 6d 65 6e |on, Open| Documen|
|00000420| 74 73 2c 20 61 6e 64 20 | 50 72 69 6e 74 20 44 6f |ts, and |Print Do|
|00000430| 63 75 6d 65 6e 74 73 20 | 61 72 65 20 72 65 70 6f |cuments |are repo|
|00000440| 72 74 65 64 0d 20 2a 20 | 28 69 2e 65 2e 2c 20 74 |rted. * |(i.e., t|
|00000450| 68 65 20 66 6f 75 72 20 | 72 65 71 75 69 72 65 64 |he four |required|
|00000460| 20 63 6f 72 65 20 41 70 | 70 6c 65 20 45 76 65 6e | core Ap|ple Even|
|00000470| 74 73 29 2e 0d 20 2a 20 | 41 70 70 6c 65 20 45 76 |ts).. * |Apple Ev|
|00000480| 65 6e 74 20 6c 6f 67 67 | 69 6e 67 20 69 73 20 61 |ent logg|ing is a|
|00000490| 20 6c 69 74 74 6c 65 20 | 64 69 66 66 65 72 65 6e | little |differen|
|000004a0| 74 20 74 68 61 6e 20 6f | 74 68 65 72 20 65 76 65 |t than o|ther eve|
|000004b0| 6e 74 73 2c 20 73 69 6e | 63 65 20 6e 6f 74 0d 20 |nts, sin|ce not. |
|000004c0| 2a 20 61 6c 6c 20 65 76 | 65 6e 74 20 69 6e 66 6f |* all ev|ent info|
|000004d0| 72 6d 61 74 69 6f 6e 20 | 69 73 20 69 6e 20 74 68 |rmation |is in th|
|000004e0| 65 20 45 76 65 6e 74 52 | 65 63 6f 72 64 2e 20 20 |e EventR|ecord. |
|000004f0| 54 68 65 79 27 72 65 20 | 6a 75 73 74 20 72 65 70 |They're |just rep|
|00000500| 6f 72 74 65 64 20 74 68 | 72 6f 75 67 68 0d 20 2a |orted th|rough. *|
|00000510| 20 74 68 65 20 72 65 67 | 75 6c 61 72 20 41 70 70 | the reg|ular App|
|00000520| 6c 65 20 45 76 65 6e 74 | 20 72 6f 75 74 69 6e 67 |le Event| routing|
|00000530| 20 6d 65 63 68 61 6e 69 | 73 6d 2e 0d 20 2a 20 31 | mechani|sm.. * 1|
|00000540| 39 20 4f 63 74 20 39 33 | 0d 20 2a 20 2d 20 41 64 |9 Oct 93|. * - Ad|
|00000550| 64 20 4c 61 75 6e 63 68 | 20 69 74 65 6d 20 74 6f |d Launch| item to|
|00000560| 20 46 69 6c 65 20 6d 65 | 6e 75 20 74 6f 20 70 72 | File me|nu to pr|
|00000570| 65 70 61 72 65 20 66 6f | 72 20 61 6c 6c 6f 77 69 |epare fo|r allowi|
|00000580| 6e 67 20 61 70 70 20 6c | 61 75 6e 63 68 65 73 20 |ng app l|aunches |
|00000590| 73 6f 0d 20 2a 20 63 61 | 6e 20 63 61 74 63 68 20 |so. * ca|n catch |
|000005a0| 61 70 70 2d 64 69 65 64 | 20 65 76 65 6e 74 73 2e |app-died| events.|
|000005b0| 20 20 41 64 64 20 68 61 | 6e 64 6c 65 72 20 66 6f | Add ha|ndler fo|
|000005c0| 72 20 41 70 70 6c 69 63 | 61 74 69 6f 6e 20 44 69 |r Applic|ation Di|
|000005d0| 65 64 20 41 70 70 6c 65 | 20 45 76 65 6e 74 2e 0d |ed Apple| Event..|
|000005e0| 20 2a 20 30 36 20 4e 6f | 76 20 39 33 0d 20 2a 20 | * 06 No|v 93. * |
|000005f0| 2d 20 52 65 70 6f 72 74 | 4b 65 79 28 29 20 6e 6f |- Report|Key() no|
|00000600| 77 20 72 65 70 6f 72 74 | 73 20 74 68 65 20 6b 65 |w report|s the ke|
|00000610| 79 20 63 6f 64 65 20 69 | 6e 20 61 64 64 69 74 69 |y code i|n additi|
|00000620| 6f 6e 20 74 6f 20 74 68 | 65 20 63 68 61 72 61 63 |on to th|e charac|
|00000630| 74 65 72 2c 20 69 6e 0d | 20 2a 20 6b 65 65 70 69 |ter, in.| * keepi|
|00000640| 6e 67 20 77 69 74 68 20 | 61 20 63 68 61 6e 67 65 |ng with |a change|
|00000650| 20 6d 61 64 65 20 73 6f | 6d 65 20 74 69 6d 65 20 | made so|me time |
|00000660| 61 67 6f 20 74 6f 20 54 | 72 61 6e 73 53 6b 65 6c |ago to T|ransSkel|
|00000670| 27 73 20 6b 65 79 20 68 | 61 6e 64 6c 65 72 20 74 |'s key h|andler t|
|00000680| 68 61 74 0d 20 2a 20 70 | 61 73 73 65 73 20 62 6f |hat. * p|asses bo|
|00000690| 74 68 2e 0d 20 2a 20 30 | 34 20 4a 61 6e 20 39 34 |th.. * 0|4 Jan 94|
|000006a0| 0d 20 2a 20 2d 20 55 6e | 64 69 64 20 49 6e 74 65 |. * - Un|did Inte|
|000006b0| 67 65 72 2f 4c 6f 6e 67 | 49 6e 74 20 74 79 70 65 |ger/Long|Int type|
|000006c0| 20 73 74 75 66 66 20 62 | 61 63 6b 20 74 6f 20 73 | stuff b|ack to s|
|000006d0| 68 6f 72 74 2f 6c 6f 6e | 67 2e 0d 20 2a 20 31 38 |hort/lon|g.. * 18|
|000006e0| 20 4a 61 6e 20 39 34 0d | 20 2a 20 2d 20 55 70 64 | Jan 94.| * - Upd|
|000006f0| 61 74 65 64 20 66 6f 72 | 20 54 72 61 6e 73 44 69 |ated for| TransDi|
|00000700| 73 70 6c 61 79 20 33 2e | 30 34 2e 0d 20 2a 20 32 |splay 3.|04.. * 2|
|00000710| 31 20 46 65 62 20 39 34 | 0d 20 2a 20 2d 20 55 70 |1 Feb 94|. * - Up|
|00000720| 64 61 74 65 64 20 66 6f | 72 20 54 72 61 6e 73 53 |dated fo|r TransS|
|00000730| 6b 65 6c 20 33 2e 31 31 | 2c 20 54 72 61 6e 73 44 |kel 3.11|, TransD|
|00000740| 69 73 70 6c 61 79 20 33 | 2e 30 35 2e 0d 20 2a 2f |isplay 3|.05.. */|
|00000750| 0d 0d 0d 23 69 6e 63 6c | 75 64 65 09 3c 47 65 73 |...#incl|ude.<Ges|
|00000760| 74 61 6c 74 45 71 75 2e | 68 3e 0d 23 69 6e 63 6c |taltEqu.|h>.#incl|
|00000770| 75 64 65 09 3c 41 70 70 | 6c 65 45 76 65 6e 74 73 |ude.<App|leEvents|
|00000780| 2e 68 3e 0d 0d 0d 23 69 | 6e 63 6c 75 64 65 09 22 |.h>...#i|nclude."|
|00000790| 54 72 61 6e 73 53 6b 65 | 6c 2e 68 22 0d 0d 23 69 |TransSke|l.h"..#i|
|000007a0| 6e 63 6c 75 64 65 09 22 | 54 72 61 6e 73 44 69 73 |nclude."|TransDis|
|000007b0| 70 6c 61 79 2e 68 22 0d | 0d 0d 23 64 65 66 69 6e |play.h".|..#defin|
|000007c0| 65 20 50 74 54 6f 4c 6f | 6e 67 28 70 74 29 09 28 |e PtToLo|ng(pt).(|
|000007d0| 2a 20 28 6c 6f 6e 67 20 | 2a 29 20 26 70 74 29 0d |* (long |*) &pt).|
|000007e0| 0d 23 64 65 66 69 6e 65 | 09 6d 61 78 42 75 74 74 |.#define|.maxButt|
|000007f0| 6f 6e 09 31 39 0d 0d 0d | 23 64 65 66 69 6e 65 09 |on.19...|#define.|
|00000800| 68 65 6c 70 54 65 78 74 | 52 65 73 09 09 31 30 30 |helpText|Res..100|
|00000810| 30 09 2f 2a 20 68 65 6c | 70 20 74 65 78 74 20 72 |0./* hel|p text r|
|00000820| 65 73 6f 75 72 63 65 20 | 6e 75 6d 62 65 72 20 2a |esource |number *|
|00000830| 2f 0d 23 64 65 66 69 6e | 65 09 61 62 6f 75 74 41 |/.#defin|e.aboutA|
|00000840| 6c 72 74 52 65 73 09 31 | 30 30 30 09 2f 2a 20 41 |lrtRes.1|000./* A|
|00000850| 62 6f 75 74 2e 2e 2e 20 | 61 6c 65 72 74 20 72 65 |bout... |alert re|
|00000860| 73 6f 75 72 63 65 20 6e | 75 6d 62 65 72 20 2a 2f |source n|umber */|
|00000870| 0d 0d 0d 74 79 70 65 64 | 65 66 20 65 6e 75 6d 09 |...typed|ef enum.|
|00000880| 09 09 09 09 2f 2a 20 4d | 65 6e 75 20 72 65 73 6f |..../* M|enu reso|
|00000890| 75 72 63 65 20 6e 75 6d | 62 65 72 73 20 2a 2f 0d |urce num|bers */.|
|000008a0| 7b 0d 09 66 69 6c 65 4d | 65 6e 75 52 65 73 20 3d |{..fileM|enuRes =|
|000008b0| 20 31 30 30 30 2c 0d 09 | 65 64 69 74 4d 65 6e 75 | 1000,..|editMenu|
|000008c0| 52 65 73 2c 0d 09 6c 6f | 67 4d 65 6e 75 52 65 73 |Res,..lo|gMenuRes|
|000008d0| 0d 7d 3b 0d 0d 0d 74 79 | 70 65 64 65 66 20 65 6e |.};...ty|pedef en|
|000008e0| 75 6d 09 09 09 09 09 2f | 2a 20 57 69 6e 64 6f 77 |um...../|* Window|
|000008f0| 20 72 65 73 6f 75 72 63 | 65 20 6e 75 6d 62 65 72 | resourc|e number|
|00000900| 73 20 2a 2f 0d 7b 0d 09 | 6c 6f 67 57 69 6e 64 52 |s */.{..|logWindR|
|00000910| 65 73 20 3d 20 31 30 30 | 30 2c 0d 09 68 65 6c 70 |es = 100|0,..help|
|00000920| 57 69 6e 64 52 65 73 2c | 0d 09 73 65 6c 65 63 74 |WindRes,|..select|
|00000930| 57 69 6e 64 52 65 73 0d | 7d 3b 0d 0d 0d 74 79 70 |WindRes.|};...typ|
|00000940| 65 64 65 66 20 65 6e 75 | 6d 09 09 09 2f 2a 20 46 |edef enu|m.../* F|
|00000950| 69 6c 65 20 6d 65 6e 75 | 20 69 74 65 6d 20 6e 75 |ile menu| item nu|
|00000960| 6d 62 65 72 73 20 2a 2f | 0d 7b 0d 09 73 68 6f 77 |mbers */|.{..show|
|00000970| 4c 6f 67 20 3d 20 31 2c | 09 2f 2a 20 6d 61 6b 65 |Log = 1,|./* make|
|00000980| 20 77 69 6e 64 6f 77 73 | 20 76 69 73 69 62 6c 65 | windows| visible|
|00000990| 2f 62 72 69 6e 67 20 74 | 6f 20 66 72 6f 6e 74 20 |/bring t|o front |
|000009a0| 2a 2f 0d 09 73 68 6f 77 | 48 65 6c 70 2c 0d 09 73 |*/..show|Help,..s|
|000009b0| 68 6f 77 53 65 6c 65 63 | 74 2c 0d 09 2f 2a 20 2d |howSelec|t,../* -|
|000009c0| 2d 2d 20 2a 2f 0d 09 6c | 61 75 6e 63 68 41 70 70 |-- */..l|aunchApp|
|000009d0| 20 3d 20 35 2c 0d 09 2f | 2a 20 2d 2d 2d 20 2a 2f | = 5,../|* --- */|
|000009e0| 0d 09 71 75 69 74 20 3d | 20 37 0d 7d 3b 0d 0d 0d |..quit =| 7.};...|
|000009f0| 74 79 70 65 64 65 66 20 | 65 6e 75 6d 09 09 09 09 |typedef |enum....|
|00000a00| 2f 2a 20 45 64 69 74 20 | 6d 65 6e 75 20 69 74 65 |/* Edit |menu ite|
|00000a10| 6d 20 6e 75 6d 62 65 72 | 73 20 2a 2f 0d 7b 0d 09 |m number|s */.{..|
|00000a20| 75 6e 64 6f 20 3d 20 31 | 2c 0d 09 2f 2a 20 2d 2d |undo = 1|,../* --|
|00000a30| 2d 20 2a 2f 0d 09 63 75 | 74 20 3d 20 33 2c 0d 09 |- */..cu|t = 3,..|
|00000a40| 63 6f 70 79 2c 0d 09 70 | 61 73 74 65 2c 0d 09 63 |copy,..p|aste,..c|
|00000a50| 6c 65 61 72 0d 7d 3b 0d | 0d 0d 74 79 70 65 64 65 |lear.};.|..typede|
|00000a60| 66 20 65 6e 75 6d 09 09 | 09 09 2f 2a 20 4c 6f 67 |f enum..|../* Log|
|00000a70| 20 6d 65 6e 75 20 69 74 | 65 6d 20 6e 75 6d 62 65 | menu it|em numbe|
|00000a80| 72 73 20 2a 2f 0d 7b 0d | 09 6c 6f 67 45 76 65 6e |rs */.{.|.logEven|
|00000a90| 74 73 20 3d 20 31 2c 09 | 09 2f 2a 20 77 68 65 74 |ts = 1,.|./* whet|
|00000aa0| 68 65 72 20 65 76 65 6e | 74 73 20 61 72 65 20 6c |her even|ts are l|
|00000ab0| 6f 67 67 65 64 20 2a 2f | 0d 09 65 78 63 6c 75 64 |ogged */|..exclud|
|00000ac0| 65 4c 57 69 6e 64 2c 0d | 09 2f 2a 20 2d 2d 2d 20 |eLWind,.|./* --- |
|00000ad0| 2a 2f 0d 09 66 6c 75 73 | 68 4c 6f 67 20 3d 20 34 |*/..flus|hLog = 4|
|00000ae0| 2c 09 09 2f 2a 20 66 6c | 75 73 68 20 6c 6f 67 20 |,../* fl|ush log |
|00000af0| 6f 75 74 70 75 74 20 2a | 2f 0d 09 2f 2a 20 2d 2d |output *|/../* --|
|00000b00| 2d 20 2a 2f 0d 09 77 72 | 61 70 53 74 79 6c 65 20 |- */..wr|apStyle |
|00000b10| 3d 20 36 2c 09 09 2f 2a | 20 77 6f 72 64 20 77 72 |= 6,../*| word wr|
|00000b20| 61 70 20 6f 72 20 6e 6f | 74 20 2a 2f 0d 09 2f 2a |ap or no|t */../*|
|00000b30| 20 2d 2d 2d 20 2a 2f 0d | 09 6c 65 66 74 4a 75 73 | --- */.|.leftJus|
|00000b40| 74 20 3d 20 38 2c 09 09 | 2f 2a 20 6a 75 73 74 69 |t = 8,..|/* justi|
|00000b50| 66 69 63 61 74 69 6f 6e | 20 2a 2f 0d 09 63 65 6e |fication| */..cen|
|00000b60| 74 65 72 4a 75 73 74 2c | 0d 09 72 69 67 68 74 4a |terJust,|..rightJ|
|00000b70| 75 73 74 2c 0d 09 2f 2a | 20 2d 2d 2d 20 2a 2f 0d |ust,../*| --- */.|
|00000b80| 09 73 6d 61 6c 6c 20 3d | 20 31 32 2c 09 09 09 2f |.small =| 12,.../|
|00000b90| 2a 20 74 65 78 74 20 73 | 69 7a 65 20 2a 2f 0d 09 |* text s|ize */..|
|00000ba0| 6d 65 64 69 75 6d 2c 0d | 09 6c 61 72 67 65 2c 0d |medium,.|.large,.|
|00000bb0| 09 2f 2a 20 2d 2d 2d 20 | 2a 2f 0d 09 74 6f 70 20 |./* --- |*/..top |
|00000bc0| 3d 20 31 36 2c 09 09 09 | 2f 2a 20 73 63 72 6f 6c |= 16,...|/* scrol|
|00000bd0| 6c 20 68 6f 6d 65 20 2a | 2f 0d 09 62 6f 74 74 6f |l home *|/..botto|
|00000be0| 6d 09 09 09 09 2f 2a 20 | 73 63 72 6f 6c 6c 20 74 |m..../* |scroll t|
|00000bf0| 6f 20 62 6f 74 74 6f 6d | 20 2a 2f 0d 7d 3b 0d 0d |o bottom| */.};..|
|00000c00| 0d 74 79 70 65 64 65 66 | 20 73 74 72 75 63 74 20 |.typedef| struct |
|00000c10| 43 74 72 6c 49 6e 66 6f | 0d 7b 0d 09 50 6f 69 6e |CtrlInfo|.{..Poin|
|00000c20| 74 09 09 09 6c 6f 63 3b | 09 09 2f 2a 20 75 70 70 |t...loc;|../* upp|
|00000c30| 65 72 20 6c 65 66 74 20 | 6f 66 20 63 6f 6e 74 72 |er left |of contr|
|00000c40| 6f 6c 20 2a 2f 0d 09 53 | 74 72 32 35 35 09 09 09 |ol */..S|tr255...|
|00000c50| 74 69 74 6c 65 3b 09 09 | 2f 2a 20 63 6f 6e 74 72 |title;..|/* contr|
|00000c60| 6f 6c 20 74 69 74 6c 65 | 20 2a 2f 0d 09 42 6f 6f |ol title| */..Boo|
|00000c70| 6c 65 61 6e 09 09 09 2a | 66 6c 61 67 41 64 64 72 |lean...*|flagAddr|
|00000c80| 3b 09 2f 2a 20 61 73 73 | 6f 63 69 61 74 65 64 20 |;./* ass|ociated |
|00000c90| 62 6f 6f 6c 65 61 6e 20 | 2a 2f 0d 09 43 6f 6e 74 |boolean |*/..Cont|
|00000ca0| 72 6f 6c 48 61 6e 64 6c | 65 09 63 74 72 6c 3b 09 |rolHandl|e.ctrl;.|
|00000cb0| 09 2f 2a 20 61 73 73 6f | 63 69 61 74 65 64 20 63 |./* asso|ciated c|
|00000cc0| 6f 6e 74 72 6f 6c 20 2a | 2f 0d 09 73 74 72 75 63 |ontrol *|/..struc|
|00000cd0| 74 20 43 74 72 6c 49 6e | 66 6f 09 2a 73 75 62 49 |t CtrlIn|fo.*subI|
|00000ce0| 6e 66 6f 3b 09 2f 2a 20 | 73 75 62 73 69 64 69 61 |nfo;./* |subsidia|
|00000cf0| 72 79 20 63 6f 6e 74 72 | 6f 6c 20 2a 2f 0d 0d 7d |ry contr|ol */..}|
|00000d00| 20 43 74 72 6c 49 6e 66 | 6f 3b 0d 0d 0d 57 69 6e | CtrlInf|o;...Win|
|00000d10| 64 6f 77 50 74 72 09 73 | 65 6c 65 63 74 57 69 6e |dowPtr.s|electWin|
|00000d20| 64 3b 09 09 09 2f 2a 20 | 65 76 65 6e 74 20 73 65 |d;.../* |event se|
|00000d30| 6c 65 63 74 69 6f 6e 20 | 77 69 6e 64 6f 77 20 2a |lection |window *|
|00000d40| 2f 0d 57 69 6e 64 6f 77 | 50 74 72 09 68 65 6c 70 |/.Window|Ptr.help|
|00000d50| 57 69 6e 64 3b 09 09 09 | 2f 2a 20 68 65 6c 70 20 |Wind;...|/* help |
|00000d60| 74 65 78 74 20 77 69 6e | 64 6f 77 20 2a 2f 0d 57 |text win|dow */.W|
|00000d70| 69 6e 64 6f 77 50 74 72 | 09 6c 6f 67 57 69 6e 64 |indowPtr|.logWind|
|00000d80| 3b 09 09 09 2f 2a 20 6c | 6f 67 20 6f 75 74 70 75 |;.../* l|og outpu|
|00000d90| 74 20 77 69 6e 64 6f 77 | 20 2a 2f 0d 4d 65 6e 75 |t window| */.Menu|
|00000da0| 48 61 6e 64 6c 65 09 66 | 69 6c 65 4d 65 6e 75 3b |Handle.f|ileMenu;|
|00000db0| 0d 4d 65 6e 75 48 61 6e | 64 6c 65 09 65 64 69 74 |.MenuHan|dle.edit|
|00000dc0| 4d 65 6e 75 3b 0d 4d 65 | 6e 75 48 61 6e 64 6c 65 |Menu;.Me|nuHandle|
|00000dd0| 09 6c 6f 67 4d 65 6e 75 | 3b 0d 42 6f 6f 6c 65 61 |.logMenu|;.Boolea|
|00000de0| 6e 09 09 72 65 70 6f 72 | 74 45 76 65 6e 74 73 3b |n..repor|tEvents;|
|00000df0| 09 09 2f 2a 20 72 65 70 | 6f 72 74 20 65 76 65 6e |../* rep|ort even|
|00000e00| 74 73 20 6f 72 20 6e 6f | 74 20 2a 2f 0d 42 6f 6f |ts or no|t */.Boo|
|00000e10| 6c 65 61 6e 09 09 65 78 | 63 6c 75 64 65 4c 6f 67 |lean..ex|cludeLog|
|00000e20| 3b 09 09 09 2f 2a 20 65 | 78 63 6c 75 64 65 20 6c |;.../* e|xclude l|
|00000e30| 6f 67 20 77 69 6e 64 6f | 77 20 65 76 65 6e 74 73 |og windo|w events|
|00000e40| 20 6f 72 20 6e 6f 74 20 | 2a 2f 0d 73 68 6f 72 74 | or not |*/.short|
|00000e50| 09 09 6c 6f 67 46 6f 6e | 74 3b 0d 73 68 6f 72 74 |..logFon|t;.short|
|00000e60| 09 09 6c 6f 67 53 69 7a | 65 3b 0d 73 68 6f 72 74 |..logSiz|e;.short|
|00000e70| 09 09 6c 6f 67 57 72 61 | 70 3b 0d 73 68 6f 72 74 |..logWra|p;.short|
|00000e80| 09 09 6c 6f 67 4a 75 73 | 74 3b 0d 0d 0d 42 6f 6f |..logJus|t;...Boo|
|00000e90| 6c 65 61 6e 09 09 09 09 | 09 09 09 2f 2a 20 65 76 |lean....|.../* ev|
|00000ea0| 65 6e 74 20 74 79 70 65 | 20 73 65 6c 65 63 74 69 |ent type| selecti|
|00000eb0| 6f 6e 20 66 6c 61 67 73 | 20 2a 2f 0d 09 09 72 4d |on flags| */...rM|
|00000ec0| 6f 75 73 65 44 6f 77 6e | 20 3d 20 74 72 75 65 2c |ouseDown| = true,|
|00000ed0| 0d 09 09 09 72 4d 6f 75 | 73 65 4d 6f 64 73 20 3d |....rMou|seMods =|
|00000ee0| 20 66 61 6c 73 65 2c 0d | 09 09 09 72 4d 6f 75 73 | false,.|...rMous|
|00000ef0| 65 57 69 6e 64 20 3d 20 | 74 72 75 65 2c 0d 09 09 |eWind = |true,...|
|00000f00| 09 72 4d 6f 75 73 65 4c | 6f 63 20 3d 20 66 61 6c |.rMouseL|oc = fal|
|00000f10| 73 65 2c 0d 09 09 09 72 | 4d 6f 75 73 65 50 61 72 |se,....r|MousePar|
|00000f20| 74 20 3d 20 74 72 75 65 | 2c 0d 09 09 09 72 4d 6f |t = true|,....rMo|
|00000f30| 75 73 65 53 79 73 20 3d | 20 66 61 6c 73 65 2c 0d |useSys =| false,.|
|00000f40| 09 09 72 4d 6f 75 73 65 | 55 70 20 3d 20 66 61 6c |..rMouse|Up = fal|
|00000f50| 73 65 2c 0d 09 09 72 4b | 65 79 44 6f 77 6e 20 3d |se,...rK|eyDown =|
|00000f60| 20 74 72 75 65 2c 0d 09 | 09 09 72 4b 44 4d 6f 64 | true,..|..rKDMod|
|00000f70| 73 20 3d 20 66 61 6c 73 | 65 2c 0d 09 09 72 41 75 |s = fals|e,...rAu|
|00000f80| 74 6f 4b 65 79 20 3d 20 | 74 72 75 65 2c 0d 09 09 |toKey = |true,...|
|00000f90| 09 72 41 4b 4d 6f 64 73 | 20 3d 20 66 61 6c 73 65 |.rAKMods| = false|
|00000fa0| 2c 0d 09 09 72 55 70 64 | 61 74 65 20 3d 20 74 72 |,...rUpd|ate = tr|
|00000fb0| 75 65 2c 0d 09 09 72 41 | 63 74 69 76 61 74 65 20 |ue,...rA|ctivate |
|00000fc0| 3d 20 74 72 75 65 2c 0d | 09 09 72 44 69 73 6b 20 |= true,.|..rDisk |
|00000fd0| 3d 20 74 72 75 65 2c 0d | 09 09 72 4f 53 20 3d 20 |= true,.|..rOS = |
|00000fe0| 74 72 75 65 2c 0d 09 09 | 09 72 4f 53 53 75 73 70 |true,...|.rOSSusp|
|00000ff0| 65 6e 64 52 65 73 75 6d | 65 20 3d 20 74 72 75 65 |endResum|e = true|
|00001000| 2c 0d 09 09 09 72 4f 53 | 4d 6f 75 73 65 4d 6f 76 |,....rOS|MouseMov|
|00001010| 65 64 20 3d 20 74 72 75 | 65 2c 0d 09 09 09 72 4f |ed = tru|e,....rO|
|00001020| 53 43 68 69 6c 64 44 69 | 65 64 20 3d 20 74 72 75 |SChildDi|ed = tru|
|00001030| 65 2c 0d 09 09 72 48 69 | 67 68 4c 65 76 65 6c 20 |e,...rHi|ghLevel |
|00001040| 3d 20 74 72 75 65 3b 0d | 0d 0d 2f 2a 0d 09 43 6f |= true;.|../*..Co|
|00001050| 6e 74 72 6f 6c 20 69 6e | 66 6f 72 6d 61 74 69 6f |ntrol in|formatio|
|00001060| 6e 2e 20 20 54 68 65 20 | 6c 61 73 74 20 66 69 65 |n. The |last fie|
|00001070| 6c 64 20 69 73 20 75 73 | 65 64 20 74 6f 20 74 65 |ld is us|ed to te|
|00001080| 6c 6c 20 77 68 69 63 68 | 20 63 6f 6e 74 72 6f 6c |ll which| control|
|00001090| 73 0d 09 61 72 65 20 22 | 6f 77 6e 65 64 22 20 62 |s..are "|owned" b|
|000010a0| 79 20 61 6e 6f 74 68 65 | 72 2e 20 20 57 68 65 6e |y anothe|r. When|
|000010b0| 20 74 68 65 20 6f 77 6e | 65 72 20 69 73 20 75 6e | the own|er is un|
|000010c0| 63 68 65 63 6b 65 64 2c | 20 61 6c 6c 20 74 68 65 |checked,| all the|
|000010d0| 20 6f 77 6e 65 64 0d 09 | 63 6f 6e 74 72 6f 6c 73 | owned..|controls|
|000010e0| 20 67 6f 20 64 69 6d 2e | 0d 2a 2f 0d 0d 43 74 72 | go dim.|.*/..Ctr|
|000010f0| 6c 49 6e 66 6f 09 63 74 | 72 6c 49 6e 66 6f 20 5b |lInfo.ct|rlInfo [|
|00001100| 6d 61 78 42 75 74 74 6f | 6e 5d 20 3d 0d 7b 0d 09 |maxButto|n] =.{..|
|00001110| 7b 20 7b 20 35 2c 20 31 | 30 7d 2c 20 22 5c 70 4d |{ { 5, 1|0}, "\pM|
|00001120| 6f 75 73 65 20 44 6f 77 | 6e 22 2c 20 26 72 4d 6f |ouse Dow|n", &rMo|
|00001130| 75 73 65 44 6f 77 6e 2c | 20 6e 69 6c 2c 20 6e 69 |useDown,| nil, ni|
|00001140| 6c 20 7d 2c 0d 09 7b 20 | 7b 20 32 35 2c 20 33 30 |l },..{ |{ 25, 30|
|00001150| 7d 2c 20 22 5c 70 4d 6f | 64 69 66 69 65 72 73 22 |}, "\pMo|difiers"|
|00001160| 2c 20 26 72 4d 6f 75 73 | 65 4d 6f 64 73 2c 20 6e |, &rMous|eMods, n|
|00001170| 69 6c 2c 20 26 63 74 72 | 6c 49 6e 66 6f 5b 30 5d |il, &ctr|lInfo[0]|
|00001180| 20 7d 2c 0d 09 7b 20 7b | 20 34 35 2c 20 33 30 7d | },..{ {| 45, 30}|
|00001190| 2c 20 22 5c 70 57 69 6e | 64 6f 77 22 2c 20 26 72 |, "\pWin|dow", &r|
|000011a0| 4d 6f 75 73 65 57 69 6e | 64 2c 20 6e 69 6c 2c 20 |MouseWin|d, nil, |
|000011b0| 26 63 74 72 6c 49 6e 66 | 6f 5b 30 5d 20 7d 2c 0d |&ctrlInf|o[0] },.|
|000011c0| 09 7b 20 7b 20 36 35 2c | 20 33 30 7d 2c 20 22 5c |.{ { 65,| 30}, "\|
|000011d0| 70 4c 6f 63 61 74 69 6f | 6e 22 2c 20 26 72 4d 6f |pLocatio|n", &rMo|
|000011e0| 75 73 65 4c 6f 63 2c 20 | 6e 69 6c 2c 20 26 63 74 |useLoc, |nil, &ct|
|000011f0| 72 6c 49 6e 66 6f 5b 30 | 5d 20 7d 2c 0d 09 7b 20 |rlInfo[0|] },..{ |
|00001200| 7b 20 38 35 2c 20 33 30 | 7d 2c 20 22 5c 70 50 61 |{ 85, 30|}, "\pPa|
|00001210| 72 74 20 43 6f 64 65 22 | 2c 20 26 72 4d 6f 75 73 |rt Code"|, &rMous|
|00001220| 65 50 61 72 74 2c 20 6e | 69 6c 2c 20 26 63 74 72 |ePart, n|il, &ctr|
|00001230| 6c 49 6e 66 6f 5b 30 5d | 20 7d 2c 0d 09 7b 20 7b |lInfo[0]| },..{ {|
|00001240| 20 31 30 35 2c 20 33 30 | 7d 2c 20 22 5c 70 53 79 | 105, 30|}, "\pSy|
|00001250| 73 74 65 6d 20 43 6c 69 | 63 6b 73 22 2c 20 26 72 |stem Cli|cks", &r|
|00001260| 4d 6f 75 73 65 53 79 73 | 2c 20 6e 69 6c 2c 20 26 |MouseSys|, nil, &|
|00001270| 63 74 72 6c 49 6e 66 6f | 5b 30 5d 20 7d 2c 0d 09 |ctrlInfo|[0] },..|
|00001280| 7b 20 7b 20 31 32 35 2c | 20 31 30 7d 2c 20 22 5c |{ { 125,| 10}, "\|
|00001290| 70 4d 6f 75 73 65 20 55 | 70 22 2c 20 26 72 4d 6f |pMouse U|p", &rMo|
|000012a0| 75 73 65 55 70 2c 20 6e | 69 6c 2c 20 6e 69 6c 20 |useUp, n|il, nil |
|000012b0| 7d 2c 0d 09 7b 20 7b 20 | 35 2c 20 31 35 30 7d 2c |},..{ { |5, 150},|
|000012c0| 20 22 5c 70 4b 65 79 20 | 44 6f 77 6e 22 2c 20 26 | "\pKey |Down", &|
|000012d0| 72 4b 65 79 44 6f 77 6e | 2c 20 6e 69 6c 2c 20 6e |rKeyDown|, nil, n|
|000012e0| 69 6c 20 7d 2c 0d 09 7b | 20 7b 20 32 35 2c 20 31 |il },..{| { 25, 1|
|000012f0| 37 30 7d 2c 20 22 5c 70 | 4d 6f 64 69 66 69 65 72 |70}, "\p|Modifier|
|00001300| 73 22 2c 20 26 72 4b 44 | 4d 6f 64 73 2c 20 6e 69 |s", &rKD|Mods, ni|
|00001310| 6c 2c 20 26 63 74 72 6c | 49 6e 66 6f 5b 37 5d 20 |l, &ctrl|Info[7] |
|00001320| 7d 2c 0d 09 7b 20 7b 20 | 34 35 2c 20 31 35 30 7d |},..{ { |45, 150}|
|00001330| 2c 20 22 5c 70 41 75 74 | 6f 4b 65 79 22 2c 20 26 |, "\pAut|oKey", &|
|00001340| 72 41 75 74 6f 4b 65 79 | 2c 20 6e 69 6c 2c 20 6e |rAutoKey|, nil, n|
|00001350| 69 6c 20 7d 2c 0d 09 7b | 20 7b 20 36 35 2c 20 31 |il },..{| { 65, 1|
|00001360| 37 30 7d 2c 20 22 5c 70 | 4d 6f 64 69 66 69 65 72 |70}, "\p|Modifier|
|00001370| 73 22 2c 20 26 72 41 4b | 4d 6f 64 73 2c 20 6e 69 |s", &rAK|Mods, ni|
|00001380| 6c 2c 20 26 63 74 72 6c | 49 6e 66 6f 5b 39 5d 20 |l, &ctrl|Info[9] |
|00001390| 7d 2c 0d 09 7b 20 7b 20 | 38 35 2c 20 31 35 30 7d |},..{ { |85, 150}|
|000013a0| 2c 20 22 5c 70 55 70 64 | 61 74 65 22 2c 20 26 72 |, "\pUpd|ate", &r|
|000013b0| 55 70 64 61 74 65 2c 20 | 6e 69 6c 2c 20 6e 69 6c |Update, |nil, nil|
|000013c0| 20 7d 2c 0d 09 7b 20 7b | 20 31 30 35 2c 20 31 35 | },..{ {| 105, 15|
|000013d0| 30 7d 2c 20 22 5c 70 41 | 63 74 69 76 61 74 65 22 |0}, "\pA|ctivate"|
|000013e0| 2c 20 26 72 41 63 74 69 | 76 61 74 65 2c 20 6e 69 |, &rActi|vate, ni|
|000013f0| 6c 2c 20 6e 69 6c 20 7d | 2c 0d 09 7b 20 7b 20 31 |l, nil }|,..{ { 1|
|00001400| 32 35 2c 20 31 35 30 7d | 2c 20 22 5c 70 44 69 73 |25, 150}|, "\pDis|
|00001410| 6b 22 2c 20 26 72 44 69 | 73 6b 2c 20 6e 69 6c 2c |k", &rDi|sk, nil,|
|00001420| 20 6e 69 6c 20 7d 2c 0d | 09 7b 20 7b 20 35 2c 20 | nil },.|.{ { 5, |
|00001430| 32 36 35 7d 2c 20 22 5c | 70 4f 53 20 45 76 65 6e |265}, "\|pOS Even|
|00001440| 74 22 2c 20 26 72 4f 53 | 2c 20 6e 69 6c 2c 20 6e |t", &rOS|, nil, n|
|00001450| 69 6c 20 7d 2c 0d 09 7b | 20 7b 20 32 35 2c 20 32 |il },..{| { 25, 2|
|00001460| 38 35 7d 2c 20 22 5c 70 | 53 75 73 70 65 6e 64 22 |85}, "\p|Suspend"|
|00001470| 2c 20 26 72 4f 53 53 75 | 73 70 65 6e 64 52 65 73 |, &rOSSu|spendRes|
|00001480| 75 6d 65 2c 20 6e 69 6c | 2c 20 26 63 74 72 6c 49 |ume, nil|, &ctrlI|
|00001490| 6e 66 6f 5b 31 34 5d 20 | 7d 2c 0d 09 7b 20 7b 20 |nfo[14] |},..{ { |
|000014a0| 34 35 2c 20 32 38 35 7d | 2c 20 22 5c 70 4d 6f 75 |45, 285}|, "\pMou|
|000014b0| 73 65 20 4d 6f 76 65 64 | 22 2c 20 26 72 4f 53 4d |se Moved|", &rOSM|
|000014c0| 6f 75 73 65 4d 6f 76 65 | 64 2c 20 6e 69 6c 2c 20 |ouseMove|d, nil, |
|000014d0| 26 63 74 72 6c 49 6e 66 | 6f 5b 31 34 5d 20 7d 2c |&ctrlInf|o[14] },|
|000014e0| 0d 09 7b 20 7b 20 36 35 | 2c 20 32 38 35 7d 2c 20 |..{ { 65|, 285}, |
|000014f0| 22 5c 70 43 68 69 6c 64 | 20 44 69 65 64 22 2c 20 |"\pChild| Died", |
|00001500| 26 72 4f 53 43 68 69 6c | 64 44 69 65 64 2c 20 6e |&rOSChil|dDied, n|
|00001510| 69 6c 2c 20 26 63 74 72 | 6c 49 6e 66 6f 5b 31 34 |il, &ctr|lInfo[14|
|00001520| 5d 20 7d 2c 0d 09 7b 20 | 7b 20 38 35 2c 20 32 36 |] },..{ |{ 85, 26|
|00001530| 35 7d 2c 20 22 5c 70 48 | 69 67 68 20 4c 65 76 65 |5}, "\pH|igh Leve|
|00001540| 6c 22 2c 20 26 72 48 69 | 67 68 4c 65 76 65 6c 2c |l", &rHi|ghLevel,|
|00001550| 20 6e 69 6c 2c 20 6e 69 | 6c 20 7d 0d 7d 3b 0d 0d | nil, ni|l }.};..|
|00001560| 2f 2a 09 57 69 6e 64 6f | 77 20 74 68 61 74 20 77 |/*.Windo|w that w|
|00001570| 61 73 20 69 6e 20 66 72 | 6f 6e 74 20 6c 61 73 74 |as in fr|ont last|
|00001580| 20 74 69 6d 65 20 63 68 | 65 63 6b 65 64 09 2a 2f | time ch|ecked.*/|
|00001590| 0d 0d 57 69 6e 64 6f 77 | 50 74 72 09 6c 61 73 74 |..Window|Ptr.last|
|000015a0| 46 72 6f 6e 74 20 3d 20 | 6e 69 6c 3b 0d 0d 73 74 |Front = |nil;..st|
|000015b0| 61 74 69 63 20 42 6f 6f | 6c 65 61 6e 09 69 6e 46 |atic Boo|lean.inF|
|000015c0| 6f 72 65 67 72 6f 75 6e | 64 20 3d 20 74 72 75 65 |oregroun|d = true|
|000015d0| 3b 0d 0d 0d 2f 2a 0d 09 | 50 72 69 6e 74 20 69 6e |;.../*..|Print in|
|000015e0| 66 6f 72 6d 61 74 69 6f | 6e 20 61 62 6f 75 74 20 |formatio|n about |
|000015f0| 61 20 77 69 6e 64 6f 77 | 2e 20 20 49 66 20 69 74 |a window|. If it|
|00001600| 27 73 20 61 20 77 69 6e | 64 6f 77 20 77 69 74 68 |'s a win|dow with|
|00001610| 20 61 20 74 69 74 6c 65 | 2c 0d 09 70 72 69 6e 74 | a title|,..print|
|00001620| 20 74 68 65 20 74 69 74 | 6c 65 2e 20 20 50 72 69 | the tit|le. Pri|
|00001630| 6e 74 20 77 68 65 74 68 | 65 72 20 69 74 27 73 20 |nt wheth|er it's |
|00001640| 61 20 64 65 73 6b 20 61 | 63 63 65 73 73 6f 72 79 |a desk a|ccessory|
|00001650| 20 77 69 6e 64 6f 77 2e | 0d 2a 2f 0d 0d 73 74 61 | window.|.*/..sta|
|00001660| 74 69 63 20 76 6f 69 64 | 0d 57 69 6e 64 6f 77 49 |tic void|.WindowI|
|00001670| 6e 66 6f 20 28 74 68 65 | 57 69 6e 64 29 0d 57 69 |nfo (the|Wind).Wi|
|00001680| 6e 64 6f 77 50 65 65 6b | 09 74 68 65 57 69 6e 64 |ndowPeek|.theWind|
|00001690| 3b 0d 7b 0d 53 74 72 32 | 35 35 09 74 69 74 6c 65 |;.{.Str2|55.title|
|000016a0| 3b 0d 0d 09 47 65 74 57 | 54 69 74 6c 65 20 28 28 |;...GetW|Title ((|
|000016b0| 57 69 6e 64 6f 77 50 74 | 72 29 20 74 68 65 57 69 |WindowPt|r) theWi|
|000016c0| 6e 64 2c 20 74 69 74 6c | 65 29 3b 0d 09 69 66 20 |nd, titl|e);..if |
|000016d0| 28 74 69 74 6c 65 5b 30 | 5d 20 21 3d 20 30 29 09 |(title[0|] != 0).|
|000016e0| 09 09 2f 2a 20 77 69 6e | 64 6f 77 20 68 61 73 20 |../* win|dow has |
|000016f0| 74 69 74 6c 65 20 2a 2f | 0d 09 7b 0d 09 09 44 69 |title */|..{...Di|
|00001700| 73 70 6c 61 79 43 68 61 | 72 20 28 27 20 27 29 3b |splayCha|r (' ');|
|00001710| 0d 09 09 44 69 73 70 6c | 61 79 53 74 72 69 6e 67 |...Displ|ayString|
|00001720| 20 28 74 69 74 6c 65 29 | 3b 0d 09 7d 0d 0d 09 69 | (title)|;..}...i|
|00001730| 66 20 28 74 68 65 57 69 | 6e 64 2d 3e 77 69 6e 64 |f (theWi|nd->wind|
|00001740| 6f 77 4b 69 6e 64 20 3c | 20 30 29 0d 09 09 44 69 |owKind <| 0)...Di|
|00001750| 73 70 6c 61 79 53 74 72 | 69 6e 67 20 28 22 5c 70 |splayStr|ing ("\p|
|00001760| 20 28 44 41 29 22 29 3b | 0d 7d 0d 0d 0d 73 74 61 | (DA)");|.}...sta|
|00001770| 74 69 63 20 76 6f 69 64 | 0d 4d 6f 64 69 66 69 65 |tic void|.Modifie|
|00001780| 72 73 20 28 6d 6f 64 73 | 29 0d 73 68 6f 72 74 09 |rs (mods|).short.|
|00001790| 6d 6f 64 73 3b 0d 7b 0d | 09 44 69 73 70 6c 61 79 |mods;.{.|.Display|
|000017a0| 53 74 72 69 6e 67 20 28 | 22 5c 70 20 6d 6f 64 69 |String (|"\p modi|
|000017b0| 66 69 65 72 73 20 30 78 | 22 29 3b 0d 09 44 69 73 |fiers 0x|");..Dis|
|000017c0| 70 6c 61 79 48 65 78 53 | 68 6f 72 74 20 28 6d 6f |playHexS|hort (mo|
|000017d0| 64 73 29 3b 0d 7d 0d 0d | 0d 73 74 61 74 69 63 20 |ds);.}..|.static |
|000017e0| 76 6f 69 64 0d 4d 6f 75 | 73 65 4c 6f 63 20 28 74 |void.Mou|seLoc (t|
|000017f0| 68 65 50 74 2c 20 74 68 | 65 50 6f 72 74 29 0d 50 |hePt, th|ePort).P|
|00001800| 6f 69 6e 74 09 74 68 65 | 50 74 3b 0d 47 72 61 66 |oint.the|Pt;.Graf|
|00001810| 50 74 72 09 74 68 65 50 | 6f 72 74 3b 0d 7b 0d 47 |Ptr.theP|ort;.{.G|
|00001820| 72 61 66 50 74 72 09 73 | 61 76 65 50 6f 72 74 3b |rafPtr.s|avePort;|
|00001830| 0d 0d 09 47 65 74 50 6f | 72 74 20 28 26 73 61 76 |...GetPo|rt (&sav|
|00001840| 65 50 6f 72 74 29 3b 0d | 09 53 65 74 50 6f 72 74 |ePort);.|.SetPort|
|00001850| 20 28 74 68 65 50 6f 72 | 74 29 3b 0d 09 47 6c 6f | (thePor|t);..Glo|
|00001860| 62 61 6c 54 6f 4c 6f 63 | 61 6c 20 28 26 74 68 65 |balToLoc|al (&the|
|00001870| 50 74 29 3b 0d 09 53 65 | 74 50 6f 72 74 20 28 73 |Pt);..Se|tPort (s|
|00001880| 61 76 65 50 6f 72 74 29 | 3b 0d 09 69 66 20 28 72 |avePort)|;..if (r|
|00001890| 4d 6f 75 73 65 4c 6f 63 | 29 0d 09 7b 0d 09 09 44 |MouseLoc|)..{...D|
|000018a0| 69 73 70 6c 61 79 53 74 | 72 69 6e 67 20 28 22 5c |isplaySt|ring ("\|
|000018b0| 70 20 6c 6f 63 20 28 22 | 29 3b 0d 09 09 44 69 73 |p loc ("|);...Dis|
|000018c0| 70 6c 61 79 53 68 6f 72 | 74 20 28 74 68 65 50 74 |playShor|t (thePt|
|000018d0| 2e 68 29 3b 0d 09 09 44 | 69 73 70 6c 61 79 53 74 |.h);...D|isplaySt|
|000018e0| 72 69 6e 67 20 28 22 5c | 70 2c 20 22 29 3b 0d 09 |ring ("\|p, ");..|
|000018f0| 09 44 69 73 70 6c 61 79 | 53 68 6f 72 74 20 28 74 |.Display|Short (t|
|00001900| 68 65 50 74 2e 76 29 3b | 0d 09 09 44 69 73 70 6c |hePt.v);|...Displ|
|00001910| 61 79 43 68 61 72 20 28 | 27 29 27 29 3b 0d 09 7d |ayChar (|')');..}|
|00001920| 0d 7d 0d 0d 0d 2f 2a 0d | 09 4d 6f 75 73 65 20 63 |.}.../*.|.Mouse c|
|00001930| 6c 69 63 6b 2e 20 20 47 | 65 74 20 74 68 65 20 77 |lick. G|et the w|
|00001940| 69 6e 64 6f 77 20 74 68 | 61 74 20 74 68 65 20 63 |indow th|at the c|
|00001950| 6c 69 63 6b 20 6f 63 63 | 75 72 72 65 64 20 69 6e |lick occ|urred in|
|00001960| 2c 20 61 6e 64 20 74 68 | 65 0d 09 70 61 72 74 20 |, and th|e..part |
|00001970| 6f 66 20 74 68 65 20 77 | 69 6e 64 6f 77 2e 0d 0d |of the w|indow...|
|00001980| 09 4d 61 6b 65 20 73 75 | 72 65 20 74 6f 20 67 65 |.Make su|re to ge|
|00001990| 74 20 61 6c 6c 20 74 68 | 65 20 70 61 72 74 20 63 |t all th|e part c|
|000019a0| 6f 64 65 73 21 20 20 28 | 69 6e 63 6c 2e 20 7a 6f |odes! (|incl. zo|
|000019b0| 6f 6d 20 62 6f 78 20 73 | 74 75 66 66 29 0d 2a 2f |om box s|tuff).*/|
|000019c0| 0d 0d 73 74 61 74 69 63 | 20 76 6f 69 64 0d 52 65 |..static| void.Re|
|000019d0| 70 6f 72 74 4d 6f 75 73 | 65 20 28 45 76 65 6e 74 |portMous|e (Event|
|000019e0| 52 65 63 6f 72 64 20 2a | 74 68 65 45 76 65 6e 74 |Record *|theEvent|
|000019f0| 29 0d 7b 0d 50 6f 69 6e | 74 09 65 76 74 50 74 3b |).{.Poin|t.evtPt;|
|00001a00| 0d 73 68 6f 72 74 09 65 | 76 74 50 61 72 74 3b 0d |.short.e|vtPart;.|
|00001a10| 47 72 61 66 50 74 72 09 | 65 76 74 50 6f 72 74 3b |GrafPtr.|evtPort;|
|00001a20| 0d 0d 09 65 76 74 50 74 | 20 3d 20 74 68 65 45 76 |...evtPt| = theEv|
|00001a30| 65 6e 74 2d 3e 77 68 65 | 72 65 3b 0d 09 65 76 74 |ent->whe|re;..evt|
|00001a40| 50 61 72 74 20 3d 20 46 | 69 6e 64 57 69 6e 64 6f |Part = F|indWindo|
|00001a50| 77 20 28 65 76 74 50 74 | 2c 20 26 65 76 74 50 6f |w (evtPt|, &evtPo|
|00001a60| 72 74 29 3b 0d 09 69 66 | 20 28 65 78 63 6c 75 64 |rt);..if| (exclud|
|00001a70| 65 4c 6f 67 20 26 26 20 | 65 76 74 50 6f 72 74 20 |eLog && |evtPort |
|00001a80| 3d 3d 20 6c 6f 67 57 69 | 6e 64 29 0d 09 09 72 65 |== logWi|nd)...re|
|00001a90| 74 75 72 6e 3b 0d 09 44 | 69 73 70 6c 61 79 53 74 |turn;..D|isplaySt|
|00001aa0| 72 69 6e 67 20 28 22 5c | 70 4d 6f 75 73 65 20 63 |ring ("\|pMouse c|
|00001ab0| 6c 69 63 6b 22 29 3b 0d | 0d 09 73 77 69 74 63 68 |lick");.|..switch|
|00001ac0| 20 28 65 76 74 50 61 72 | 74 29 0d 09 7b 0d 09 64 | (evtPar|t)..{..d|
|00001ad0| 65 66 61 75 6c 74 3a 0d | 09 09 69 66 20 28 72 4d |efault:.|..if (rM|
|00001ae0| 6f 75 73 65 50 61 72 74 | 29 0d 09 09 7b 0d 09 09 |ousePart|)...{...|
|00001af0| 09 44 69 73 70 6c 61 79 | 53 74 72 69 6e 67 20 28 |.Display|String (|
|00001b00| 22 5c 70 20 69 6e 20 75 | 6e 6b 6e 6f 77 6e 20 70 |"\p in u|nknown p|
|00001b10| 61 72 74 20 63 6f 64 65 | 20 22 29 3b 0d 09 09 09 |art code| ");....|
|00001b20| 44 69 73 70 6c 61 79 53 | 68 6f 72 74 20 28 65 76 |DisplayS|hort (ev|
|00001b30| 74 50 61 72 74 29 3b 0d | 09 09 7d 0d 09 09 62 72 |tPart);.|..}...br|
|00001b40| 65 61 6b 3b 0d 0d 09 2f | 2a 0d 09 20 2a 20 43 6c |eak;.../|*.. * Cl|
|00001b50| 69 63 6b 20 69 6e 20 61 | 20 64 65 73 6b 20 61 63 |ick in a| desk ac|
|00001b60| 63 65 73 73 6f 72 79 20 | 77 69 6e 64 6f 77 2e 0d |cessory |window..|
|00001b70| 09 20 2a 2f 0d 09 63 61 | 73 65 20 69 6e 53 79 73 |. */..ca|se inSys|
|00001b80| 57 69 6e 64 6f 77 3a 0d | 09 09 69 66 20 28 72 4d |Window:.|..if (rM|
|00001b90| 6f 75 73 65 53 79 73 29 | 0d 09 09 7b 0d 09 09 09 |ouseSys)|...{....|
|00001ba0| 69 66 20 28 72 4d 6f 75 | 73 65 50 61 72 74 29 0d |if (rMou|sePart).|
|00001bb0| 09 09 09 09 44 69 73 70 | 6c 61 79 53 74 72 69 6e |....Disp|layStrin|
|00001bc0| 67 20 28 22 5c 70 20 69 | 6e 20 73 79 73 74 65 6d |g ("\p i|n system|
|00001bd0| 20 77 69 6e 64 6f 77 3a | 22 29 3b 0d 09 09 09 69 | window:|");....i|
|00001be0| 66 20 28 72 4d 6f 75 73 | 65 57 69 6e 64 29 0d 09 |f (rMous|eWind)..|
|00001bf0| 09 09 09 57 69 6e 64 6f | 77 49 6e 66 6f 20 28 28 |...Windo|wInfo ((|
|00001c00| 57 69 6e 64 6f 77 50 65 | 65 6b 29 20 65 76 74 50 |WindowPe|ek) evtP|
|00001c10| 6f 72 74 29 3b 0d 09 09 | 09 4d 6f 75 73 65 4c 6f |ort);...|.MouseLo|
|00001c20| 63 20 28 65 76 74 50 74 | 2c 20 65 76 74 50 6f 72 |c (evtPt|, evtPor|
|00001c30| 74 29 3b 0d 09 09 7d 0d | 09 09 62 72 65 61 6b 3b |t);...}.|..break;|
|00001c40| 0d 0d 09 2f 2a 0d 09 20 | 2a 20 43 6c 69 63 6b 20 |.../*.. |* Click |
|00001c50| 69 6e 20 64 65 73 6b 20 | 74 6f 70 2e 0d 09 20 2a |in desk |top... *|
|00001c60| 2f 0d 09 63 61 73 65 20 | 69 6e 44 65 73 6b 3a 0d |/..case |inDesk:.|
|00001c70| 09 09 69 66 20 28 72 4d | 6f 75 73 65 50 61 72 74 |..if (rM|ousePart|
|00001c80| 29 0d 09 09 09 44 69 73 | 70 6c 61 79 53 74 72 69 |)....Dis|playStri|
|00001c90| 6e 67 20 28 22 5c 70 20 | 69 6e 20 64 65 73 6b 74 |ng ("\p |in deskt|
|00001ca0| 6f 70 22 29 3b 0d 09 09 | 62 72 65 61 6b 3b 0d 0d |op");...|break;..|
|00001cb0| 09 2f 2a 0d 09 20 2a 20 | 43 6c 69 63 6b 20 69 6e |./*.. * |Click in|
|00001cc0| 20 6d 65 6e 75 20 62 61 | 72 2e 0d 09 20 2a 2f 0d | menu ba|r... */.|
|00001cd0| 09 63 61 73 65 20 69 6e | 4d 65 6e 75 42 61 72 3a |.case in|MenuBar:|
|00001ce0| 0d 09 09 69 66 20 28 72 | 4d 6f 75 73 65 50 61 72 |...if (r|MousePar|
|00001cf0| 74 29 0d 09 09 09 44 69 | 73 70 6c 61 79 53 74 72 |t)....Di|splayStr|
|00001d00| 69 6e 67 20 28 22 5c 70 | 20 69 6e 20 6d 65 6e 75 |ing ("\p| in menu|
|00001d10| 20 62 61 72 22 29 3b 0d | 09 09 62 72 65 61 6b 3b | bar");.|..break;|
|00001d20| 0d 0d 09 2f 2a 0d 09 20 | 2a 20 43 6c 69 63 6b 20 |.../*.. |* Click |
|00001d30| 69 6e 20 67 72 6f 77 20 | 62 6f 78 2e 0d 09 20 2a |in grow |box... *|
|00001d40| 2f 0d 09 63 61 73 65 20 | 69 6e 47 72 6f 77 3a 0d |/..case |inGrow:.|
|00001d50| 09 09 69 66 20 28 72 4d | 6f 75 73 65 50 61 72 74 |..if (rM|ousePart|
|00001d60| 29 0d 09 09 09 44 69 73 | 70 6c 61 79 53 74 72 69 |)....Dis|playStri|
|00001d70| 6e 67 20 28 22 5c 70 20 | 69 6e 20 67 72 6f 77 20 |ng ("\p |in grow |
|00001d80| 72 65 67 69 6f 6e 3a 22 | 29 3b 0d 09 09 69 66 20 |region:"|);...if |
|00001d90| 28 72 4d 6f 75 73 65 57 | 69 6e 64 29 0d 09 09 09 |(rMouseW|ind)....|
|00001da0| 57 69 6e 64 6f 77 49 6e | 66 6f 20 28 28 57 69 6e |WindowIn|fo ((Win|
|00001db0| 64 6f 77 50 65 65 6b 29 | 20 65 76 74 50 6f 72 74 |dowPeek)| evtPort|
|00001dc0| 29 3b 0d 09 09 4d 6f 75 | 73 65 4c 6f 63 20 28 65 |);...Mou|seLoc (e|
|00001dd0| 76 74 50 74 2c 20 65 76 | 74 50 6f 72 74 29 3b 0d |vtPt, ev|tPort);.|
|00001de0| 09 09 62 72 65 61 6b 3b | 0d 0d 09 2f 2a 0d 09 20 |..break;|.../*.. |
|00001df0| 2a 20 43 6c 69 63 6b 20 | 69 6e 20 74 69 74 6c 65 |* Click |in title|
|00001e00| 20 62 61 72 2e 0d 09 20 | 2a 2f 0d 09 63 61 73 65 | bar... |*/..case|
|00001e10| 20 69 6e 44 72 61 67 3a | 0d 09 09 69 66 20 28 72 | inDrag:|...if (r|
|00001e20| 4d 6f 75 73 65 50 61 72 | 74 29 0d 09 09 09 44 69 |MousePar|t)....Di|
|00001e30| 73 70 6c 61 79 53 74 72 | 69 6e 67 20 28 22 5c 70 |splayStr|ing ("\p|
|00001e40| 20 69 6e 20 64 72 61 67 | 20 72 65 67 69 6f 6e 3a | in drag| region:|
|00001e50| 22 29 3b 0d 09 09 69 66 | 20 28 72 4d 6f 75 73 65 |");...if| (rMouse|
|00001e60| 57 69 6e 64 29 0d 09 09 | 09 57 69 6e 64 6f 77 49 |Wind)...|.WindowI|
|00001e70| 6e 66 6f 20 28 28 57 69 | 6e 64 6f 77 50 65 65 6b |nfo ((Wi|ndowPeek|
|00001e80| 29 20 65 76 74 50 6f 72 | 74 29 3b 0d 09 09 62 72 |) evtPor|t);...br|
|00001e90| 65 61 6b 3b 0d 0d 09 2f | 2a 0d 09 20 2a 20 43 6c |eak;.../|*.. * Cl|
|00001ea0| 69 63 6b 20 69 6e 20 63 | 6c 6f 73 65 20 62 6f 78 |ick in c|lose box|
|00001eb0| 2e 0d 09 20 2a 2f 0d 09 | 63 61 73 65 20 69 6e 47 |... */..|case inG|
|00001ec0| 6f 41 77 61 79 3a 0d 09 | 09 69 66 20 28 72 4d 6f |oAway:..|.if (rMo|
|00001ed0| 75 73 65 50 61 72 74 29 | 0d 09 09 09 44 69 73 70 |usePart)|....Disp|
|00001ee0| 6c 61 79 53 74 72 69 6e | 67 20 28 22 5c 70 20 69 |layStrin|g ("\p i|
|00001ef0| 6e 20 63 6c 6f 73 65 20 | 62 6f 78 3a 22 29 3b 0d |n close |box:");.|
|00001f00| 09 09 69 66 20 28 72 4d | 6f 75 73 65 57 69 6e 64 |..if (rM|ouseWind|
|00001f10| 29 0d 09 09 09 57 69 6e | 64 6f 77 49 6e 66 6f 20 |)....Win|dowInfo |
|00001f20| 28 28 57 69 6e 64 6f 77 | 50 65 65 6b 29 20 65 76 |((Window|Peek) ev|
|00001f30| 74 50 6f 72 74 29 3b 0d | 09 09 62 72 65 61 6b 3b |tPort);.|..break;|
|00001f40| 0d 0d 09 2f 2a 0d 09 20 | 2a 20 43 6c 69 63 6b 20 |.../*.. |* Click |
|00001f50| 69 6e 20 7a 6f 6f 6d 2d | 69 6e 20 62 6f 78 2e 0d |in zoom-|in box..|
|00001f60| 09 20 2a 2f 0d 09 63 61 | 73 65 20 69 6e 5a 6f 6f |. */..ca|se inZoo|
|00001f70| 6d 49 6e 3a 0d 09 09 69 | 66 20 28 72 4d 6f 75 73 |mIn:...i|f (rMous|
|00001f80| 65 50 61 72 74 29 0d 09 | 09 09 44 69 73 70 6c 61 |ePart)..|..Displa|
|00001f90| 79 53 74 72 69 6e 67 20 | 28 22 5c 70 20 69 6e 20 |yString |("\p in |
|00001fa0| 7a 6f 6f 6d 2d 69 6e 20 | 62 6f 78 3a 22 29 3b 0d |zoom-in |box:");.|
|00001fb0| 09 09 69 66 20 28 72 4d | 6f 75 73 65 57 69 6e 64 |..if (rM|ouseWind|
|00001fc0| 29 0d 09 09 09 57 69 6e | 64 6f 77 49 6e 66 6f 20 |)....Win|dowInfo |
|00001fd0| 28 28 57 69 6e 64 6f 77 | 50 65 65 6b 29 20 65 76 |((Window|Peek) ev|
|00001fe0| 74 50 6f 72 74 29 3b 0d | 09 09 62 72 65 61 6b 3b |tPort);.|..break;|
|00001ff0| 0d 0d 09 2f 2a 0d 09 20 | 2a 20 43 6c 69 63 6b 20 |.../*.. |* Click |
|00002000| 69 6e 20 7a 6f 6f 6d 2d | 6f 75 74 20 62 6f 78 2e |in zoom-|out box.|
|00002010| 0d 09 20 2a 2f 0d 09 63 | 61 73 65 20 69 6e 5a 6f |.. */..c|ase inZo|
|00002020| 6f 6d 4f 75 74 3a 0d 09 | 09 69 66 20 28 72 4d 6f |omOut:..|.if (rMo|
|00002030| 75 73 65 50 61 72 74 29 | 0d 09 09 09 44 69 73 70 |usePart)|....Disp|
|00002040| 6c 61 79 53 74 72 69 6e | 67 20 28 22 5c 70 20 69 |layStrin|g ("\p i|
|00002050| 6e 20 7a 6f 6f 6d 2d 6f | 75 74 20 62 6f 78 3a 22 |n zoom-o|ut box:"|
|00002060| 29 3b 0d 09 09 69 66 20 | 28 72 4d 6f 75 73 65 57 |);...if |(rMouseW|
|00002070| 69 6e 64 29 0d 09 09 09 | 57 69 6e 64 6f 77 49 6e |ind)....|WindowIn|
|00002080| 66 6f 20 28 28 57 69 6e | 64 6f 77 50 65 65 6b 29 |fo ((Win|dowPeek)|
|00002090| 20 65 76 74 50 6f 72 74 | 29 3b 0d 09 09 62 72 65 | evtPort|);...bre|
|000020a0| 61 6b 3b 0d 0d 09 2f 2a | 0d 09 20 2a 20 43 6c 69 |ak;.../*|.. * Cli|
|000020b0| 63 6b 20 69 6e 20 63 6f | 6e 74 65 6e 74 20 72 65 |ck in co|ntent re|
|000020c0| 67 69 6f 6e 2e 0d 09 20 | 2a 0d 09 20 2a 20 28 73 |gion... |*.. * (s|
|000020d0| 6f 6d 65 20 64 61 79 20 | 2d 20 63 68 65 63 6b 20 |ome day |- check |
|000020e0| 69 66 20 69 6e 20 63 6f | 6e 74 72 6f 6c 2c 20 61 |if in co|ntrol, a|
|000020f0| 6e 64 20 69 66 20 73 6f | 2c 20 70 72 69 6e 74 20 |nd if so|, print |
|00002100| 63 6f 6e 74 72 6f 6c 20 | 69 6e 66 6f 72 6d 61 74 |control |informat|
|00002110| 69 6f 6e 29 0d 09 20 2a | 2f 0d 09 63 61 73 65 20 |ion).. *|/..case |
|00002120| 69 6e 43 6f 6e 74 65 6e | 74 3a 0d 09 09 69 66 20 |inConten|t:...if |
|00002130| 28 72 4d 6f 75 73 65 50 | 61 72 74 29 0d 09 09 09 |(rMouseP|art)....|
|00002140| 44 69 73 70 6c 61 79 53 | 74 72 69 6e 67 20 28 22 |DisplayS|tring ("|
|00002150| 5c 70 20 69 6e 20 63 6f | 6e 74 65 6e 74 20 72 65 |\p in co|ntent re|
|00002160| 67 69 6f 6e 3a 22 29 3b | 0d 09 09 69 66 20 28 72 |gion:");|...if (r|
|00002170| 4d 6f 75 73 65 57 69 6e | 64 29 0d 09 09 09 57 69 |MouseWin|d)....Wi|
|00002180| 6e 64 6f 77 49 6e 66 6f | 20 28 28 57 69 6e 64 6f |ndowInfo| ((Windo|
|00002190| 77 50 65 65 6b 29 20 65 | 76 74 50 6f 72 74 29 3b |wPeek) e|vtPort);|
|000021a0| 0d 09 09 4d 6f 75 73 65 | 4c 6f 63 20 28 65 76 74 |...Mouse|Loc (evt|
|000021b0| 50 74 2c 20 65 76 74 50 | 6f 72 74 29 3b 0d 09 09 |Pt, evtP|ort);...|
|000021c0| 62 72 65 61 6b 3b 0d 09 | 7d 0d 0d 09 69 66 20 28 |break;..|}...if (|
|000021d0| 72 4d 6f 75 73 65 4d 6f | 64 73 29 0d 09 09 4d 6f |rMouseMo|ds)...Mo|
|000021e0| 64 69 66 69 65 72 73 20 | 28 74 68 65 45 76 65 6e |difiers |(theEven|
|000021f0| 74 2d 3e 6d 6f 64 69 66 | 69 65 72 73 29 3b 0d 09 |t->modif|iers);..|
|00002200| 44 69 73 70 6c 61 79 4c | 6e 20 28 29 3b 0d 7d 0d |DisplayL|n ();.}.|
|00002210| 0d 0d 2f 2a 0d 20 2a 20 | 54 68 65 20 68 69 67 68 |../*. * |The high|
|00002220| 20 62 69 74 20 6f 66 20 | 74 68 65 20 6b 65 79 20 | bit of |the key |
|00002230| 63 6f 64 65 20 69 73 20 | 73 65 74 20 69 66 20 74 |code is |set if t|
|00002240| 68 65 20 65 76 65 6e 74 | 20 69 73 20 61 20 6b 65 |he event| is a ke|
|00002250| 79 20 75 70 20 65 76 65 | 6e 74 2e 0d 20 2a 20 41 |y up eve|nt.. * A|
|00002260| 63 74 75 61 6c 6c 79 2c | 20 74 68 69 73 20 77 69 |ctually,| this wi|
|00002270| 6c 6c 20 6e 65 76 65 72 | 20 62 65 20 72 65 70 6f |ll never| be repo|
|00002280| 72 74 65 64 20 73 69 6e | 63 65 20 74 68 65 20 64 |rted sin|ce the d|
|00002290| 65 66 61 75 6c 74 20 65 | 76 65 6e 74 20 6d 61 73 |efault e|vent mas|
|000022a0| 6b 0d 20 2a 20 65 78 63 | 6c 75 64 65 73 20 6b 65 |k. * exc|ludes ke|
|000022b0| 79 20 75 70 73 2e 20 20 | 49 27 6d 20 6e 6f 74 20 |y ups. |I'm not |
|000022c0| 73 75 72 65 20 74 68 65 | 20 73 79 73 74 65 6d 20 |sure the| system |
|000022d0| 72 65 70 6f 72 74 73 20 | 74 68 65 6d 20 61 6e 79 |reports |them any|
|000022e0| 6d 6f 72 65 20 61 6e 79 | 77 61 79 2c 0d 20 2a 20 |more any|way,. * |
|000022f0| 65 76 65 6e 20 69 66 20 | 79 6f 75 20 63 68 61 6e |even if |you chan|
|00002300| 67 65 20 74 68 65 20 65 | 76 65 6e 74 20 6d 61 73 |ge the e|vent mas|
|00002310| 6b 2e 2e 2e 0d 20 2a 2f | 0d 0d 73 74 61 74 69 63 |k.... */|..static|
|00002320| 20 76 6f 69 64 0d 52 65 | 70 6f 72 74 4b 65 79 20 | void.Re|portKey |
|00002330| 28 73 68 6f 72 74 20 77 | 68 61 74 2c 20 63 68 61 |(short w|hat, cha|
|00002340| 72 20 63 2c 20 75 6e 73 | 69 67 6e 65 64 20 63 68 |r c, uns|igned ch|
|00002350| 61 72 20 63 6f 64 65 2c | 20 73 68 6f 72 74 20 6d |ar code,| short m|
|00002360| 6f 64 73 2c 20 42 6f 6f | 6c 65 61 6e 20 6d 6f 64 |ods, Boo|lean mod|
|00002370| 46 6c 61 67 29 0d 7b 0d | 09 69 66 20 28 77 68 61 |Flag).{.|.if (wha|
|00002380| 74 20 3d 3d 20 6b 65 79 | 44 6f 77 6e 29 0d 09 09 |t == key|Down)...|
|00002390| 44 69 73 70 6c 61 79 53 | 74 72 69 6e 67 20 28 22 |DisplayS|tring ("|
|000023a0| 5c 70 4b 65 79 20 64 6f | 77 6e 3a 20 63 68 61 72 |\pKey do|wn: char|
|000023b0| 20 27 22 29 3b 0d 09 65 | 6c 73 65 0d 09 09 44 69 | '");..e|lse...Di|
|000023c0| 73 70 6c 61 79 53 74 72 | 69 6e 67 20 28 22 5c 70 |splayStr|ing ("\p|
|000023d0| 41 75 74 6f 6b 65 79 3a | 20 63 68 61 72 20 27 22 |Autokey:| char '"|
|000023e0| 29 3b 0d 09 44 69 73 70 | 6c 61 79 43 68 61 72 20 |);..Disp|layChar |
|000023f0| 28 63 29 3b 0d 09 44 69 | 73 70 6c 61 79 53 74 72 |(c);..Di|splayStr|
|00002400| 69 6e 67 20 28 22 5c 70 | 27 2c 20 63 6f 64 65 20 |ing ("\p|', code |
|00002410| 30 78 22 29 3b 0d 09 44 | 69 73 70 6c 61 79 48 65 |0x");..D|isplayHe|
|00002420| 78 53 68 6f 72 74 20 28 | 28 73 68 6f 72 74 29 20 |xShort (|(short) |
|00002430| 63 6f 64 65 29 3b 0d 09 | 69 66 20 28 6d 6f 64 46 |code);..|if (modF|
|00002440| 6c 61 67 29 0d 09 7b 0d | 09 09 44 69 73 70 6c 61 |lag)..{.|..Displa|
|00002450| 79 53 74 72 69 6e 67 20 | 28 22 5c 70 2c 22 29 3b |yString |("\p,");|
|00002460| 0d 09 09 4d 6f 64 69 66 | 69 65 72 73 20 28 6d 6f |...Modif|iers (mo|
|00002470| 64 73 29 3b 0d 09 7d 0d | 09 44 69 73 70 6c 61 79 |ds);..}.|.Display|
|00002480| 4c 6e 20 28 29 3b 0d 7d | 0d 0d 0d 73 74 61 74 69 |Ln ();.}|...stati|
|00002490| 63 20 76 6f 69 64 0d 52 | 65 70 6f 72 74 41 63 74 |c void.R|eportAct|
|000024a0| 69 76 61 74 65 20 28 57 | 69 6e 64 6f 77 50 74 72 |ivate (W|indowPtr|
|000024b0| 20 74 68 65 57 69 6e 64 | 2c 20 73 68 6f 72 74 20 | theWind|, short |
|000024c0| 6d 6f 64 73 29 0d 7b 0d | 09 69 66 20 28 28 6d 6f |mods).{.|.if ((mo|
|000024d0| 64 73 20 26 20 61 63 74 | 69 76 65 46 6c 61 67 29 |ds & act|iveFlag)|
|000024e0| 20 21 3d 20 30 29 0d 09 | 09 44 69 73 70 6c 61 79 | != 0)..|.Display|
|000024f0| 53 74 72 69 6e 67 20 28 | 22 5c 70 41 63 74 69 76 |String (|"\pActiv|
|00002500| 61 74 65 3a 22 29 3b 0d | 09 65 6c 73 65 0d 09 09 |ate:");.|.else...|
|00002510| 44 69 73 70 6c 61 79 53 | 74 72 69 6e 67 20 28 22 |DisplayS|tring ("|
|00002520| 5c 70 44 65 61 63 74 69 | 76 61 74 65 3a 22 29 3b |\pDeacti|vate:");|
|00002530| 0d 09 57 69 6e 64 6f 77 | 49 6e 66 6f 20 28 28 57 |..Window|Info ((W|
|00002540| 69 6e 64 6f 77 50 65 65 | 6b 29 20 74 68 65 57 69 |indowPee|k) theWi|
|00002550| 6e 64 29 3b 0d 09 44 69 | 73 70 6c 61 79 4c 6e 20 |nd);..Di|splayLn |
|00002560| 28 29 3b 0d 7d 0d 0d 0d | 73 74 61 74 69 63 20 20 |();.}...|static |
|00002570| 76 6f 69 64 0d 52 65 70 | 6f 72 74 55 70 64 61 74 |void.Rep|ortUpdat|
|00002580| 65 20 28 57 69 6e 64 6f | 77 50 74 72 20 74 68 65 |e (Windo|wPtr the|
|00002590| 57 69 6e 64 29 0d 7b 0d | 09 44 69 73 70 6c 61 79 |Wind).{.|.Display|
|000025a0| 53 74 72 69 6e 67 20 28 | 22 5c 70 55 70 64 61 74 |String (|"\pUpdat|
|000025b0| 65 3a 22 29 3b 0d 09 57 | 69 6e 64 6f 77 49 6e 66 |e:");..W|indowInf|
|000025c0| 6f 20 28 28 57 69 6e 64 | 6f 77 50 65 65 6b 29 20 |o ((Wind|owPeek) |
|000025d0| 28 57 69 6e 64 6f 77 50 | 65 65 6b 29 20 74 68 65 |(WindowP|eek) the|
|000025e0| 57 69 6e 64 29 3b 0d 09 | 44 69 73 70 6c 61 79 4c |Wind);..|DisplayL|
|000025f0| 6e 20 28 29 3b 0d 7d 0d | 0d 0d 2f 2a 0d 20 2a 20 |n ();.}.|../*. * |
|00002600| 47 65 6e 65 72 61 6c 20 | 65 76 65 6e 74 20 6c 6f |General |event lo|
|00002610| 67 67 65 72 2e 20 20 54 | 68 69 73 20 69 73 20 65 |gger. T|his is e|
|00002620| 73 73 65 6e 74 69 61 6c | 6c 79 20 61 20 6d 6f 64 |ssential|ly a mod|
|00002630| 69 66 69 65 64 20 63 6f | 70 79 20 6f 66 0d 20 2a |ified co|py of. *|
|00002640| 20 53 6b 65 6c 52 6f 75 | 74 65 45 76 65 6e 74 28 | SkelRou|teEvent(|
|00002650| 29 2e 20 20 4e 75 6c 6c | 20 65 76 65 6e 74 73 20 |). Null| events |
|00002660| 61 72 65 20 6e 6f 74 20 | 72 65 63 6f 72 64 65 64 |are not |recorded|
|00002670| 20 62 65 63 61 75 73 65 | 20 74 68 65 79 20 6f 63 | because| they oc|
|00002680| 63 75 72 0d 20 2a 20 74 | 6f 6f 20 66 72 65 71 75 |cur. * t|oo frequ|
|00002690| 65 6e 74 6c 79 2e 0d 20 | 2a 2f 0d 0d 73 74 61 74 |ently.. |*/..stat|
|000026a0| 69 63 20 70 61 73 63 61 | 6c 20 42 6f 6f 6c 65 61 |ic pasca|l Boolea|
|000026b0| 6e 0d 4c 6f 67 45 76 65 | 6e 74 20 28 45 76 65 6e |n.LogEve|nt (Even|
|000026c0| 74 52 65 63 6f 72 64 20 | 2a 74 68 65 45 76 65 6e |tRecord |*theEven|
|000026d0| 74 29 0d 7b 0d 50 6f 69 | 6e 74 09 09 09 65 76 74 |t).{.Poi|nt...evt|
|000026e0| 50 74 3b 0d 6c 6f 6e 67 | 09 09 09 65 76 74 4d 73 |Pt;.long|...evtMs|
|000026f0| 67 65 3b 0d 47 72 61 66 | 50 74 72 09 09 09 74 6d |ge;.Graf|Ptr...tm|
|00002700| 70 50 6f 72 74 3b 0d 73 | 68 6f 72 74 09 09 09 65 |pPort;.s|hort...e|
|00002710| 76 74 50 61 72 74 3b 0d | 63 68 61 72 09 09 09 65 |vtPart;.|char...e|
|00002720| 76 74 43 68 61 72 3b 0d | 75 6e 73 69 67 6e 65 64 |vtChar;.|unsigned|
|00002730| 20 63 68 61 72 09 65 76 | 74 43 6f 64 65 3b 0d 73 | char.ev|tCode;.s|
|00002740| 68 6f 72 74 09 09 09 65 | 76 74 4d 6f 64 73 3b 0d |hort...e|vtMods;.|
|00002750| 52 65 63 74 09 09 09 72 | 3b 0d 73 68 6f 72 74 09 |Rect...r|;.short.|
|00002760| 09 09 6f 73 4d 73 67 65 | 3b 0d 42 6f 6f 6c 65 61 |..osMsge|;.Boolea|
|00002770| 6e 09 09 09 6f 73 53 75 | 73 70 65 6e 64 3b 0d 42 |n...osSu|spend;.B|
|00002780| 6f 6f 6c 65 61 6e 09 09 | 09 6f 73 43 6c 69 70 43 |oolean..|.osClipC|
|00002790| 76 74 3b 0d 0d 2f 2a 0d | 69 66 20 28 74 68 65 45 |vt;../*.|if (theE|
|000027a0| 76 65 6e 74 2d 3e 77 68 | 61 74 20 21 3d 20 30 29 |vent->wh|at != 0)|
|000027b0| 0d 7b 0d 09 44 69 73 70 | 6c 61 79 53 74 72 69 6e |.{..Disp|layStrin|
|000027c0| 67 20 28 22 5c 70 45 76 | 65 6e 74 20 6e 75 6d 62 |g ("\pEv|ent numb|
|000027d0| 65 72 3a 20 22 29 3b 0d | 09 44 69 73 70 6c 61 79 |er: ");.|.Display|
|000027e0| 4c 6f 6e 67 20 28 28 6c | 6f 6e 67 29 20 74 68 65 |Long ((l|ong) the|
|000027f0| 45 76 65 6e 74 2d 3e 77 | 68 61 74 29 3b 0d 09 44 |Event->w|hat);..D|
|00002800| 69 73 70 6c 61 79 4c 6e | 20 28 29 3b 0d 7d 0d 2a |isplayLn| ();.}.*|
|00002810| 2f 0d 09 69 66 20 28 72 | 65 70 6f 72 74 45 76 65 |/..if (r|eportEve|
|00002820| 6e 74 73 20 3d 3d 20 66 | 61 6c 73 65 29 0d 09 09 |nts == f|alse)...|
|00002830| 72 65 74 75 72 6e 20 28 | 66 61 6c 73 65 29 3b 09 |return (|false);.|
|00002840| 09 09 2f 2a 20 64 6f 6e | 27 74 20 64 6f 20 61 6e |../* don|'t do an|
|00002850| 79 74 68 69 6e 67 20 2a | 2f 0d 09 65 76 74 50 74 |ything *|/..evtPt|
|00002860| 20 3d 20 74 68 65 45 76 | 65 6e 74 2d 3e 77 68 65 | = theEv|ent->whe|
|00002870| 72 65 3b 0d 09 65 76 74 | 4d 73 67 65 20 3d 20 74 |re;..evt|Msge = t|
|00002880| 68 65 45 76 65 6e 74 2d | 3e 6d 65 73 73 61 67 65 |heEvent-|>message|
|00002890| 3b 0d 09 65 76 74 4d 6f | 64 73 20 3d 20 74 68 65 |;..evtMo|ds = the|
|000028a0| 45 76 65 6e 74 2d 3e 6d | 6f 64 69 66 69 65 72 73 |Event->m|odifiers|
|000028b0| 3b 0d 0d 09 73 77 69 74 | 63 68 20 28 74 68 65 45 |;...swit|ch (theE|
|000028c0| 76 65 6e 74 2d 3e 77 68 | 61 74 29 0d 09 7b 0d 0d |vent->wh|at)..{..|
|000028d0| 2f 2a 0d 09 4d 6f 75 73 | 65 20 63 6c 69 63 6b 2e |/*..Mous|e click.|
|000028e0| 0d 2a 2f 0d 09 09 63 61 | 73 65 20 6d 6f 75 73 65 |.*/...ca|se mouse|
|000028f0| 44 6f 77 6e 3a 0d 09 09 | 09 69 66 20 28 72 4d 6f |Down:...|.if (rMo|
|00002900| 75 73 65 44 6f 77 6e 29 | 0d 09 09 09 09 52 65 70 |useDown)|.....Rep|
|00002910| 6f 72 74 4d 6f 75 73 65 | 20 28 74 68 65 45 76 65 |ortMouse| (theEve|
|00002920| 6e 74 29 3b 0d 09 09 09 | 62 72 65 61 6b 3b 0d 0d |nt);....|break;..|
|00002930| 09 09 63 61 73 65 20 6d | 6f 75 73 65 55 70 3a 0d |..case m|ouseUp:.|
|00002940| 09 09 09 69 66 20 28 72 | 4d 6f 75 73 65 55 70 29 |...if (r|MouseUp)|
|00002950| 0d 09 09 09 09 44 69 73 | 70 6c 61 79 53 74 72 69 |.....Dis|playStri|
|00002960| 6e 67 20 28 22 5c 70 4d | 6f 75 73 65 20 75 70 5c |ng ("\pM|ouse up\|
|00002970| 72 22 29 3b 0d 09 09 09 | 62 72 65 61 6b 3b 0d 0d |r");....|break;..|
|00002980| 2f 2a 0d 09 4b 65 79 20 | 65 76 65 6e 74 2e 0d 2a |/*..Key |event..*|
|00002990| 2f 0d 09 09 63 61 73 65 | 20 6b 65 79 44 6f 77 6e |/...case| keyDown|
|000029a0| 3a 0d 09 09 09 69 66 20 | 28 65 78 63 6c 75 64 65 |:....if |(exclude|
|000029b0| 4c 6f 67 20 26 26 20 46 | 72 6f 6e 74 57 69 6e 64 |Log && F|rontWind|
|000029c0| 6f 77 20 28 29 20 3d 3d | 20 6c 6f 67 57 69 6e 64 |ow () ==| logWind|
|000029d0| 29 0d 09 09 09 09 62 72 | 65 61 6b 3b 0d 09 09 09 |).....br|eak;....|
|000029e0| 69 66 20 28 72 4b 65 79 | 44 6f 77 6e 29 0d 09 09 |if (rKey|Down)...|
|000029f0| 09 7b 0d 09 09 09 09 65 | 76 74 43 68 61 72 20 3d |.{.....e|vtChar =|
|00002a00| 20 65 76 74 4d 73 67 65 | 20 26 20 63 68 61 72 43 | evtMsge| & charC|
|00002a10| 6f 64 65 4d 61 73 6b 3b | 0d 09 09 09 09 65 76 74 |odeMask;|.....evt|
|00002a20| 43 6f 64 65 20 3d 20 28 | 65 76 74 4d 73 67 65 20 |Code = (|evtMsge |
|00002a30| 26 20 6b 65 79 43 6f 64 | 65 4d 61 73 6b 29 20 3e |& keyCod|eMask) >|
|00002a40| 3e 20 38 3b 0d 09 09 09 | 09 52 65 70 6f 72 74 4b |> 8;....|.ReportK|
|00002a50| 65 79 20 28 6b 65 79 44 | 6f 77 6e 2c 20 65 76 74 |ey (keyD|own, evt|
|00002a60| 43 68 61 72 2c 20 65 76 | 74 43 6f 64 65 2c 20 65 |Char, ev|tCode, e|
|00002a70| 76 74 4d 6f 64 73 2c 20 | 72 4b 44 4d 6f 64 73 29 |vtMods, |rKDMods)|
|00002a80| 3b 0d 09 09 09 7d 0d 09 | 09 09 62 72 65 61 6b 3b |;....}..|..break;|
|00002a90| 0d 0d 09 09 63 61 73 65 | 20 61 75 74 6f 4b 65 79 |....case| autoKey|
|00002aa0| 3a 0d 09 09 09 69 66 20 | 28 65 78 63 6c 75 64 65 |:....if |(exclude|
|00002ab0| 4c 6f 67 20 26 26 20 46 | 72 6f 6e 74 57 69 6e 64 |Log && F|rontWind|
|00002ac0| 6f 77 20 28 29 20 3d 3d | 20 6c 6f 67 57 69 6e 64 |ow () ==| logWind|
|00002ad0| 29 0d 09 09 09 09 62 72 | 65 61 6b 3b 0d 09 09 09 |).....br|eak;....|
|00002ae0| 69 66 20 28 72 4b 65 79 | 44 6f 77 6e 29 0d 09 09 |if (rKey|Down)...|
|00002af0| 09 7b 0d 09 09 09 09 65 | 76 74 43 68 61 72 20 3d |.{.....e|vtChar =|
|00002b00| 20 65 76 74 4d 73 67 65 | 20 26 20 63 68 61 72 43 | evtMsge| & charC|
|00002b10| 6f 64 65 4d 61 73 6b 3b | 0d 09 09 09 09 65 76 74 |odeMask;|.....evt|
|00002b20| 43 6f 64 65 20 3d 20 28 | 65 76 74 4d 73 67 65 20 |Code = (|evtMsge |
|00002b30| 26 20 6b 65 79 43 6f 64 | 65 4d 61 73 6b 29 20 3e |& keyCod|eMask) >|
|00002b40| 3e 20 38 3b 0d 09 09 09 | 09 52 65 70 6f 72 74 4b |> 8;....|.ReportK|
|00002b50| 65 79 20 28 61 75 74 6f | 4b 65 79 2c 20 65 76 74 |ey (auto|Key, evt|
|00002b60| 43 68 61 72 2c 20 65 76 | 74 43 6f 64 65 2c 20 65 |Char, ev|tCode, e|
|00002b70| 76 74 4d 6f 64 73 2c 20 | 72 41 4b 4d 6f 64 73 29 |vtMods, |rAKMods)|
|00002b80| 3b 0d 09 09 09 7d 0d 09 | 09 09 62 72 65 61 6b 3b |;....}..|..break;|
|00002b90| 0d 0d 2f 2a 0d 09 55 70 | 64 61 74 65 20 61 20 77 |../*..Up|date a w|
|00002ba0| 69 6e 64 6f 77 2e 20 20 | 49 66 20 69 74 27 73 20 |indow. |If it's |
|00002bb0| 61 6e 20 75 70 64 61 74 | 65 20 66 6f 72 20 74 68 |an updat|e for th|
|00002bc0| 65 20 6c 6f 67 20 77 69 | 6e 64 6f 77 2c 20 69 6e |e log wi|ndow, in|
|00002bd0| 76 61 6c 69 64 61 74 65 | 0d 09 69 74 2c 20 62 65 |validate|..it, be|
|00002be0| 63 61 75 73 65 20 74 68 | 65 20 6d 65 73 73 61 67 |cause th|e messag|
|00002bf0| 65 20 69 73 20 77 72 69 | 74 74 65 6e 20 61 6e 64 |e is wri|tten and|
|00002c00| 20 77 69 6c 6c 20 63 61 | 75 73 65 20 61 20 73 63 | will ca|use a sc|
|00002c10| 72 6f 6c 6c 20 42 45 46 | 4f 52 45 0d 09 74 68 65 |roll BEF|ORE..the|
|00002c20| 20 77 69 6e 64 6f 77 20 | 61 63 74 75 61 6c 6c 79 | window |actually|
|00002c30| 20 67 65 74 73 20 75 70 | 64 61 74 65 64 2e 20 20 | gets up|dated. |
|00002c40| 54 68 69 73 20 6d 65 61 | 6e 73 20 74 68 61 74 20 |This mea|ns that |
|00002c50| 70 61 72 74 20 6f 66 20 | 77 68 61 74 0d 09 6e 65 |part of |what..ne|
|00002c60| 65 64 73 20 72 65 64 72 | 61 77 69 6e 67 20 77 69 |eds redr|awing wi|
|00002c70| 6c 6c 20 62 65 20 73 63 | 72 6f 6c 6c 65 64 20 6f |ll be sc|rolled o|
|00002c80| 75 74 20 6f 66 20 74 68 | 65 20 75 70 64 61 74 65 |ut of th|e update|
|00002c90| 20 72 65 67 69 6f 6e 20 | 61 6e 64 20 77 6f 6e 27 | region |and won'|
|00002ca0| 74 0d 09 62 65 20 72 65 | 64 72 61 77 6e 20 70 72 |t..be re|drawn pr|
|00002cb0| 6f 70 65 72 6c 79 2e 20 | 20 49 6e 76 61 6c 69 64 |operly. | Invalid|
|00002cc0| 61 74 69 6e 67 20 74 68 | 65 20 65 6e 74 69 72 65 |ating th|e entire|
|00002cd0| 20 70 6f 72 74 20 69 73 | 20 77 61 73 74 65 66 75 | port is| wastefu|
|00002ce0| 6c 20 62 75 74 0d 09 6d | 61 6b 65 73 20 73 75 72 |l but..m|akes sur|
|00002cf0| 65 20 74 68 65 20 77 68 | 6f 6c 65 20 77 69 6e 64 |e the wh|ole wind|
|00002d00| 6f 77 20 63 61 6e 20 62 | 65 20 64 72 61 77 6e 20 |ow can b|e drawn |
|00002d10| 70 72 6f 70 65 72 6c 79 | 2e 0d 2a 2f 0d 09 09 63 |properly|..*/...c|
|00002d20| 61 73 65 20 75 70 64 61 | 74 65 45 76 74 3a 0d 09 |ase upda|teEvt:..|
|00002d30| 09 09 69 66 20 28 28 57 | 69 6e 64 6f 77 50 74 72 |..if ((W|indowPtr|
|00002d40| 29 20 65 76 74 4d 73 67 | 65 20 3d 3d 20 6c 6f 67 |) evtMsg|e == log|
|00002d50| 57 69 6e 64 29 0d 09 09 | 09 7b 0d 09 09 09 09 47 |Wind)...|.{.....G|
|00002d60| 65 74 50 6f 72 74 20 28 | 26 74 6d 70 50 6f 72 74 |etPort (|&tmpPort|
|00002d70| 29 3b 0d 09 09 09 09 53 | 65 74 50 6f 72 74 20 28 |);.....S|etPort (|
|00002d80| 6c 6f 67 57 69 6e 64 29 | 3b 0d 09 09 09 09 49 6e |logWind)|;.....In|
|00002d90| 76 61 6c 52 65 63 74 20 | 28 26 6c 6f 67 57 69 6e |valRect |(&logWin|
|00002da0| 64 2d 3e 70 6f 72 74 52 | 65 63 74 29 3b 0d 09 09 |d->portR|ect);...|
|00002db0| 09 09 53 65 74 50 6f 72 | 74 20 28 74 6d 70 50 6f |..SetPor|t (tmpPo|
|00002dc0| 72 74 29 3b 0d 09 09 09 | 7d 0d 09 09 09 69 66 20 |rt);....|}....if |
|00002dd0| 28 65 78 63 6c 75 64 65 | 4c 6f 67 20 26 26 20 28 |(exclude|Log && (|
|00002de0| 57 69 6e 64 6f 77 50 74 | 72 29 20 65 76 74 4d 73 |WindowPt|r) evtMs|
|00002df0| 67 65 20 3d 3d 20 6c 6f | 67 57 69 6e 64 29 0d 09 |ge == lo|gWind)..|
|00002e00| 09 09 09 62 72 65 61 6b | 3b 0d 09 09 09 69 66 20 |...break|;....if |
|00002e10| 28 72 55 70 64 61 74 65 | 29 0d 09 09 09 09 52 65 |(rUpdate|).....Re|
|00002e20| 70 6f 72 74 55 70 64 61 | 74 65 20 28 28 57 69 6e |portUpda|te ((Win|
|00002e30| 64 6f 77 50 74 72 29 20 | 65 76 74 4d 73 67 65 29 |dowPtr) |evtMsge)|
|00002e40| 3b 0d 09 09 09 62 72 65 | 61 6b 3b 0d 0d 2f 2a 0d |;....bre|ak;../*.|
|00002e50| 09 41 63 74 69 76 61 74 | 65 20 6f 72 20 64 65 61 |.Activat|e or dea|
|00002e60| 63 74 69 76 61 74 65 20 | 61 20 77 69 6e 64 6f 77 |ctivate |a window|
|00002e70| 2e 0d 2a 2f 0d 09 09 63 | 61 73 65 20 61 63 74 69 |..*/...c|ase acti|
|00002e80| 76 61 74 65 45 76 74 3a | 0d 09 09 09 69 66 20 28 |vateEvt:|....if (|
|00002e90| 65 78 63 6c 75 64 65 4c | 6f 67 20 26 26 20 28 57 |excludeL|og && (W|
|00002ea0| 69 6e 64 6f 77 50 74 72 | 29 20 65 76 74 4d 73 67 |indowPtr|) evtMsg|
|00002eb0| 65 20 3d 3d 20 6c 6f 67 | 57 69 6e 64 29 0d 09 09 |e == log|Wind)...|
|00002ec0| 09 09 62 72 65 61 6b 3b | 0d 09 09 09 69 66 20 28 |..break;|....if (|
|00002ed0| 72 41 63 74 69 76 61 74 | 65 29 0d 09 09 09 09 52 |rActivat|e).....R|
|00002ee0| 65 70 6f 72 74 41 63 74 | 69 76 61 74 65 20 28 28 |eportAct|ivate ((|
|00002ef0| 57 69 6e 64 6f 77 50 74 | 72 29 20 65 76 74 4d 73 |WindowPt|r) evtMs|
|00002f00| 67 65 2c 20 74 68 65 45 | 76 65 6e 74 2d 3e 6d 6f |ge, theE|vent->mo|
|00002f10| 64 69 66 69 65 72 73 29 | 3b 0d 09 09 09 62 72 65 |difiers)|;....bre|
|00002f20| 61 6b 3b 0d 0d 2f 2a 0d | 09 68 61 6e 64 6c 65 20 |ak;../*.|.handle |
|00002f30| 69 6e 73 65 72 74 73 20 | 6f 66 20 75 6e 69 6e 69 |inserts |of unini|
|00002f40| 74 69 61 6c 69 7a 65 64 | 20 64 69 73 6b 73 0d 2a |tialized| disks.*|
|00002f50| 2f 0d 09 09 63 61 73 65 | 20 64 69 73 6b 45 76 74 |/...case| diskEvt|
|00002f60| 3a 0d 09 09 09 69 66 20 | 28 72 44 69 73 6b 29 0d |:....if |(rDisk).|
|00002f70| 09 09 09 7b 0d 09 09 09 | 09 44 69 73 70 6c 61 79 |...{....|.Display|
|00002f80| 53 74 72 69 6e 67 20 28 | 22 5c 70 44 69 73 6b 20 |String (|"\pDisk |
|00002f90| 69 6e 73 65 72 74 69 6f | 6e 22 29 3b 0d 09 09 09 |insertio|n");....|
|00002fa0| 09 69 66 20 28 48 69 57 | 6f 72 64 20 28 65 76 74 |.if (HiW|ord (evt|
|00002fb0| 4d 73 67 65 29 20 21 3d | 20 6e 6f 45 72 72 29 0d |Msge) !=| noErr).|
|00002fc0| 09 09 09 09 7b 0d 09 09 | 09 09 09 44 69 73 70 6c |....{...|...Displ|
|00002fd0| 61 79 53 74 72 69 6e 67 | 20 28 22 5c 70 20 28 6e |ayString| ("\p (n|
|00002fe0| 65 65 64 73 20 69 6e 69 | 74 69 61 6c 69 7a 69 6e |eeds ini|tializin|
|00002ff0| 67 29 22 29 3b 0d 09 09 | 09 09 7d 0d 09 09 09 09 |g)");...|..}.....|
|00003000| 44 69 73 70 6c 61 79 4c | 6e 20 28 29 3b 0d 09 09 |DisplayL|n ();...|
|00003010| 09 7d 0d 09 09 09 62 72 | 65 61 6b 3b 0d 0d 09 0d |.}....br|eak;....|
|00003020| 09 09 63 61 73 65 20 6f | 73 45 76 74 3a 09 09 09 |..case o|sEvt:...|
|00003030| 09 2f 2a 20 61 6b 61 20 | 61 70 70 34 45 76 74 20 |./* aka |app4Evt |
|00003040| 61 6b 61 20 4d 75 6c 74 | 69 46 69 6e 64 65 72 20 |aka Mult|iFinder |
|00003050| 65 76 65 6e 74 20 2a 2f | 0d 09 09 09 69 66 20 28 |event */|....if (|
|00003060| 21 72 4f 53 29 0d 09 09 | 09 09 62 72 65 61 6b 3b |!rOS)...|..break;|
|00003070| 0d 09 09 09 44 69 73 70 | 6c 61 79 53 74 72 69 6e |....Disp|layStrin|
|00003080| 67 20 28 22 5c 70 4f 53 | 20 65 76 65 6e 74 3a 22 |g ("\pOS| event:"|
|00003090| 29 3b 0d 09 09 09 2f 2a | 20 72 69 70 20 74 68 65 |);..../*| rip the|
|000030a0| 20 6d 65 73 73 61 67 65 | 20 66 69 65 6c 64 20 69 | message| field i|
|000030b0| 6e 74 6f 20 63 6f 6e 73 | 74 69 74 75 65 6e 74 20 |nto cons|tituent |
|000030c0| 70 61 72 74 73 20 2a 2f | 0d 09 09 09 6f 73 4d 73 |parts */|....osMs|
|000030d0| 67 65 20 3d 20 28 28 65 | 76 74 4d 73 67 65 20 3e |ge = ((e|vtMsge >|
|000030e0| 3e 20 32 34 29 20 26 20 | 30 78 66 66 29 3b 09 09 |> 24) & |0xff);..|
|000030f0| 09 2f 2a 20 68 69 67 68 | 20 62 79 74 65 20 2a 2f |./* high| byte */|
|00003100| 0d 09 09 09 6f 73 53 75 | 73 70 65 6e 64 20 3d 20 |....osSu|spend = |
|00003110| 28 42 6f 6f 6c 65 61 6e | 29 20 28 28 65 76 74 4d |(Boolean|) ((evtM|
|00003120| 73 67 65 20 26 20 31 29 | 20 3d 3d 20 30 29 3b 09 |sge & 1)| == 0);.|
|00003130| 2f 2a 20 73 75 73 70 65 | 6e 64 20 61 70 70 6c 69 |/* suspe|nd appli|
|00003140| 63 61 74 69 6f 6e 20 2a | 2f 0d 09 09 09 6f 73 43 |cation *|/....osC|
|00003150| 6c 69 70 43 76 74 20 3d | 20 28 42 6f 6f 6c 65 61 |lipCvt =| (Boolea|
|00003160| 6e 29 20 28 28 65 76 74 | 4d 73 67 65 20 26 20 32 |n) ((evt|Msge & 2|
|00003170| 29 20 21 3d 20 30 29 3b | 09 2f 2a 20 63 6f 6e 76 |) != 0);|./* conv|
|00003180| 65 72 74 20 63 6c 69 70 | 62 6f 61 72 64 20 3f 20 |ert clip|board ? |
|00003190| 2a 2f 0d 0d 09 09 09 73 | 77 69 74 63 68 20 28 6f |*/.....s|witch (o|
|000031a0| 73 4d 73 67 65 29 0d 09 | 09 09 7b 0d 09 09 09 63 |sMsge)..|..{....c|
|000031b0| 61 73 65 09 31 3a 09 09 | 09 09 2f 2a 20 73 75 73 |ase.1:..|../* sus|
|000031c0| 70 65 6e 64 20 6f 72 20 | 72 65 73 75 6d 65 20 65 |pend or |resume e|
|000031d0| 76 65 6e 74 20 2a 2f 0d | 09 09 09 09 69 6e 46 6f |vent */.|....inFo|
|000031e0| 72 65 67 72 6f 75 6e 64 | 20 3d 20 21 6f 73 53 75 |reground| = !osSu|
|000031f0| 73 70 65 6e 64 3b 0d 09 | 09 09 09 69 66 20 28 6f |spend;..|...if (o|
|00003200| 73 53 75 73 70 65 6e 64 | 29 09 09 09 2f 2a 20 61 |sSuspend|).../* a|
|00003210| 6c 77 61 79 73 20 63 6f | 6e 76 65 72 74 20 6f 6e |lways co|nvert on|
|00003220| 20 73 75 73 70 65 6e 64 | 20 2a 2f 0d 09 09 09 09 | suspend| */.....|
|00003230| 09 6f 73 43 6c 69 70 43 | 76 74 20 3d 20 74 72 75 |.osClipC|vt = tru|
|00003240| 65 3b 0d 09 09 09 09 69 | 66 20 28 69 6e 46 6f 72 |e;.....i|f (inFor|
|00003250| 65 67 72 6f 75 6e 64 29 | 0d 09 09 09 09 09 44 69 |eground)|......Di|
|00003260| 73 70 6c 61 79 53 74 72 | 69 6e 67 20 28 22 5c 70 |splayStr|ing ("\p|
|00003270| 20 72 65 73 75 6d 65 22 | 29 3b 0d 09 09 09 09 65 | resume"|);.....e|
|00003280| 6c 73 65 0d 09 09 09 09 | 09 44 69 73 70 6c 61 79 |lse.....|.Display|
|00003290| 53 74 72 69 6e 67 20 28 | 22 5c 70 20 73 75 73 70 |String (|"\p susp|
|000032a0| 65 6e 64 22 29 3b 0d 09 | 09 09 09 69 66 20 28 6f |end");..|...if (o|
|000032b0| 73 43 6c 69 70 43 76 74 | 29 0d 09 09 09 09 09 44 |sClipCvt|)......D|
|000032c0| 69 73 70 6c 61 79 53 74 | 72 69 6e 67 20 28 22 5c |isplaySt|ring ("\|
|000032d0| 70 20 28 63 6f 6e 76 65 | 72 74 20 63 6c 69 70 62 |p (conve|rt clipb|
|000032e0| 6f 61 72 64 29 22 29 3b | 0d 09 09 09 09 65 6c 73 |oard)");|.....els|
|000032f0| 65 0d 09 09 09 09 09 44 | 69 73 70 6c 61 79 53 74 |e......D|isplaySt|
|00003300| 72 69 6e 67 20 28 22 5c | 70 20 28 64 6f 20 6e 6f |ring ("\|p (do no|
|00003310| 74 20 63 6f 6e 76 65 72 | 74 20 63 6c 69 70 62 6f |t conver|t clipbo|
|00003320| 61 72 64 29 22 29 3b 0d | 09 09 09 09 62 72 65 61 |ard)");.|....brea|
|00003330| 6b 3b 0d 0d 09 09 09 63 | 61 73 65 20 30 78 66 61 |k;.....c|ase 0xfa|
|00003340| 3a 09 09 09 09 2f 2a 20 | 6d 6f 75 73 65 2d 6d 6f |:..../* |mouse-mo|
|00003350| 76 65 64 20 65 76 65 6e | 74 20 2a 2f 0d 09 09 09 |ved even|t */....|
|00003360| 09 2f 2a 0d 09 09 09 09 | 20 2a 20 4e 6f 74 20 6c |./*.....| * Not l|
|00003370| 69 6b 65 6c 79 20 74 6f | 20 62 65 20 65 78 65 63 |ikely to| be exec|
|00003380| 75 74 65 64 20 73 69 6e | 63 65 20 45 76 65 6e 74 |uted sin|ce Event|
|00003390| 4c 6f 67 20 64 6f 65 73 | 6e 27 74 20 0d 09 09 09 |Log does|n't ....|
|000033a0| 09 20 2a 20 64 6f 20 61 | 6e 79 74 68 69 6e 67 20 |. * do a|nything |
|000033b0| 61 62 6f 75 74 20 63 68 | 61 6e 67 69 6e 67 20 63 |about ch|anging c|
|000033c0| 75 72 73 6f 72 0d 09 09 | 09 09 20 2a 2f 0d 09 09 |ursor...|.. */...|
|000033d0| 09 09 44 69 73 70 6c 61 | 79 53 74 72 69 6e 67 20 |..Displa|yString |
|000033e0| 28 22 5c 70 6d 6f 75 73 | 65 20 6d 6f 76 65 64 22 |("\pmous|e moved"|
|000033f0| 29 3b 0d 09 09 09 09 62 | 72 65 61 6b 3b 0d 0d 09 |);.....b|reak;...|
|00003400| 09 09 63 61 73 65 20 30 | 78 66 64 3a 09 09 09 09 |..case 0|xfd:....|
|00003410| 2f 2a 20 63 68 69 6c 64 | 2d 64 69 65 64 20 65 76 |/* child|-died ev|
|00003420| 65 6e 74 20 2a 2f 0d 09 | 09 09 09 2f 2a 20 53 41 |ent */..|.../* SA|
|00003430| 44 45 2d 6f 6e 6c 79 20 | 65 76 65 6e 74 20 2a 2f |DE-only |event */|
|00003440| 0d 09 09 09 09 2f 2a 20 | 63 68 69 6c 64 20 70 69 |...../* |child pi|
|00003450| 64 20 69 73 20 62 79 74 | 65 20 32 20 28 65 76 74 |d is byt|e 2 (evt|
|00003460| 4d 73 67 65 20 3e 3e 20 | 31 36 29 20 26 20 30 78 |Msge >> |16) & 0x|
|00003470| 66 66 4c 29 20 2a 2f 0d | 09 09 09 09 44 69 73 70 |ffL) */.|....Disp|
|00003480| 6c 61 79 53 74 72 69 6e | 67 20 28 22 5c 70 20 73 |layStrin|g ("\p s|
|00003490| 61 64 65 20 28 70 69 64 | 20 22 29 3b 0d 09 09 09 |ade (pid| ");....|
|000034a0| 09 44 69 73 70 6c 61 79 | 53 68 6f 72 74 20 28 28 |.Display|Short ((|
|000034b0| 65 76 74 4d 73 67 65 20 | 3e 3e 20 31 36 29 20 26 |evtMsge |>> 16) &|
|000034c0| 20 30 78 66 66 29 3b 0d | 09 09 09 09 44 69 73 70 | 0xff);.|....Disp|
|000034d0| 6c 61 79 53 74 72 69 6e | 67 20 28 22 5c 70 29 22 |layStrin|g ("\p)"|
|000034e0| 29 3b 0d 09 09 09 09 62 | 72 65 61 6b 3b 0d 0d 09 |);.....b|reak;...|
|000034f0| 09 09 64 65 66 61 75 6c | 74 3a 09 09 09 09 2f 2a |..defaul|t:..../*|
|00003500| 20 6f 74 68 65 72 20 65 | 76 65 6e 74 20 2a 2f 0d | other e|vent */.|
|00003510| 09 09 09 09 44 69 73 70 | 6c 61 79 53 74 72 69 6e |....Disp|layStrin|
|00003520| 67 20 28 22 5c 70 20 75 | 6e 6b 6e 6f 77 6e 20 74 |g ("\p u|nknown t|
|00003530| 79 70 65 22 29 3b 0d 09 | 09 09 09 62 72 65 61 6b |ype");..|...break|
|00003540| 3b 0d 09 09 09 7d 0d 09 | 09 09 44 69 73 70 6c 61 |;....}..|..Displa|
|00003550| 79 4c 6e 20 28 29 3b 0d | 09 09 09 62 72 65 61 6b |yLn ();.|...break|
|00003560| 3b 0d 0d 09 09 63 61 73 | 65 20 6b 48 69 67 68 4c |;....cas|e kHighL|
|00003570| 65 76 65 6c 45 76 65 6e | 74 3a 0d 09 09 09 2f 2a |evelEven|t:..../*|
|00003580| 20 48 61 6e 64 6c 65 64 | 20 62 79 20 4c 6f 67 41 | Handled| by LogA|
|00003590| 70 70 6c 65 45 76 65 6e | 74 28 29 20 2a 2f 0d 09 |ppleEven|t() */..|
|000035a0| 09 09 62 72 65 61 6b 3b | 0d 0d 09 7d 0d 09 72 65 |..break;|...}..re|
|000035b0| 74 75 72 6e 20 28 66 61 | 6c 73 65 29 3b 09 09 2f |turn (fa|lse);../|
|000035c0| 2a 20 6e 65 76 65 72 20 | 74 65 6c 6c 20 54 72 61 |* never |tell Tra|
|000035d0| 6e 73 53 6b 65 6c 20 74 | 68 65 20 65 76 65 6e 74 |nsSkel t|he event|
|000035e0| 20 77 61 73 20 68 61 6e | 64 6c 65 64 20 2a 2f 0d | was han|dled */.|
|000035f0| 7d 0d 0d 0d 73 74 61 74 | 69 63 20 70 61 73 63 61 |}...stat|ic pasca|
|00003600| 6c 20 76 6f 69 64 0d 4c | 6f 67 41 70 70 6c 65 45 |l void.L|ogAppleE|
|00003610| 76 65 6e 74 20 28 45 76 | 65 6e 74 52 65 63 6f 72 |vent (Ev|entRecor|
|00003620| 64 20 2a 74 68 65 45 76 | 65 6e 74 29 0d 7b 0d 09 |d *theEv|ent).{..|
|00003630| 69 66 20 28 21 72 48 69 | 67 68 4c 65 76 65 6c 29 |if (!rHi|ghLevel)|
|00003640| 0d 09 09 72 65 74 75 72 | 6e 3b 0d 0d 09 44 69 73 |...retur|n;...Dis|
|00003650| 70 6c 61 79 53 74 72 69 | 6e 67 20 28 22 5c 70 48 |playStri|ng ("\pH|
|00003660| 69 67 68 20 6c 65 76 65 | 6c 20 65 76 65 6e 74 20 |igh leve|l event |
|00003670| 27 22 29 3b 0d 09 44 69 | 73 70 6c 61 79 4f 53 54 |'");..Di|splayOST|
|00003680| 79 70 65 20 28 28 4f 53 | 54 79 70 65 29 20 74 68 |ype ((OS|Type) th|
|00003690| 65 45 76 65 6e 74 2d 3e | 6d 65 73 73 61 67 65 29 |eEvent->|message)|
|000036a0| 3b 0d 09 44 69 73 70 6c | 61 79 53 74 72 69 6e 67 |;..Displ|ayString|
|000036b0| 20 28 22 5c 70 27 20 27 | 22 29 3b 0d 09 44 69 73 | ("\p' '|");..Dis|
|000036c0| 70 6c 61 79 4f 53 54 79 | 70 65 20 28 28 4f 53 54 |playOSTy|pe ((OST|
|000036d0| 79 70 65 29 20 50 74 54 | 6f 4c 6f 6e 67 20 28 74 |ype) PtT|oLong (t|
|000036e0| 68 65 45 76 65 6e 74 2d | 3e 77 68 65 72 65 29 29 |heEvent-|>where))|
|000036f0| 3b 0d 09 44 69 73 70 6c | 61 79 53 74 72 69 6e 67 |;..Displ|ayString|
|00003700| 20 28 22 5c 70 27 22 29 | 3b 0d 09 44 69 73 70 6c | ("\p'")|;..Displ|
|00003710| 61 79 4c 6e 20 28 29 3b | 0d 09 41 45 50 72 6f 63 |ayLn ();|..AEProc|
|00003720| 65 73 73 41 70 70 6c 65 | 45 76 65 6e 74 20 28 74 |essApple|Event (t|
|00003730| 68 65 45 76 65 6e 74 29 | 3b 0d 7d 0d 0d 0d 2f 2a |heEvent)|;.}.../*|
|00003740| 0d 20 2a 20 48 61 6e 64 | 6c 65 72 20 66 6f 72 20 |. * Hand|ler for |
|00003750| 4f 70 65 6e 20 41 70 70 | 6c 69 63 61 74 69 6f 6e |Open App|lication|
|00003760| 20 6f 72 20 51 75 69 74 | 20 41 70 70 6c 69 63 61 | or Quit| Applica|
|00003770| 74 69 6f 6e 20 41 70 70 | 6c 65 20 45 76 65 6e 74 |tion App|le Event|
|00003780| 73 2e 0d 20 2a 20 52 65 | 66 65 72 65 6e 63 65 20 |s.. * Re|ference |
|00003790| 63 6f 6e 73 74 61 6e 74 | 20 69 73 20 30 20 66 6f |constant| is 0 fo|
|000037a0| 72 20 4f 70 65 6e 2c 20 | 31 20 66 6f 72 20 51 75 |r Open, |1 for Qu|
|000037b0| 69 74 2e 0d 20 2a 20 4e | 6f 74 65 20 74 68 61 74 |it.. * N|ote that|
|000037c0| 20 69 74 20 6d 75 73 74 | 20 62 65 20 61 20 70 61 | it must| be a pa|
|000037d0| 73 63 61 6c 20 66 75 6e | 63 74 69 6f 6e 21 0d 20 |scal fun|ction!. |
|000037e0| 2a 2f 0d 0d 73 74 61 74 | 69 63 20 70 61 73 63 61 |*/..stat|ic pasca|
|000037f0| 6c 20 4f 53 45 72 72 0d | 41 45 4f 70 65 6e 4f 72 |l OSErr.|AEOpenOr|
|00003800| 51 75 69 74 41 70 70 20 | 28 41 70 70 6c 65 45 76 |QuitApp |(AppleEv|
|00003810| 65 6e 74 20 2a 74 68 65 | 41 45 76 74 2c 20 41 70 |ent *the|AEvt, Ap|
|00003820| 70 6c 65 45 76 65 6e 74 | 20 2a 72 65 70 6c 79 45 |pleEvent| *replyE|
|00003830| 76 74 2c 20 6c 6f 6e 67 | 20 72 65 66 43 6f 6e 29 |vt, long| refCon)|
|00003840| 0d 7b 0d 6c 6f 6e 67 09 | 69 74 65 6d 73 3b 0d 0d |.{.long.|items;..|
|00003850| 09 69 66 20 28 72 65 66 | 43 6f 6e 20 3d 3d 20 30 |.if (ref|Con == 0|
|00003860| 4c 29 0d 09 09 44 69 73 | 70 6c 61 79 53 74 72 69 |L)...Dis|playStri|
|00003870| 6e 67 20 28 22 5c 70 4f | 70 65 6e 20 41 70 70 6c |ng ("\pO|pen Appl|
|00003880| 69 63 61 74 69 6f 6e 20 | 41 70 70 6c 65 20 65 76 |ication |Apple ev|
|00003890| 65 6e 74 22 29 3b 0d 09 | 65 6c 73 65 0d 09 09 44 |ent");..|else...D|
|000038a0| 69 73 70 6c 61 79 53 74 | 72 69 6e 67 20 28 22 5c |isplaySt|ring ("\|
|000038b0| 70 51 75 69 74 20 41 70 | 70 6c 69 63 61 74 69 6f |pQuit Ap|plicatio|
|000038c0| 6e 20 41 70 70 6c 65 20 | 65 76 65 6e 74 22 29 3b |n Apple |event");|
|000038d0| 0d 09 44 69 73 70 6c 61 | 79 4c 6e 20 28 29 3b 0d |..Displa|yLn ();.|
|000038e0| 09 72 65 74 75 72 6e 20 | 28 6e 6f 45 72 72 29 3b |.return |(noErr);|
|000038f0| 0d 7d 0d 0d 0d 2f 2a 0d | 20 2a 20 48 61 6e 64 6c |.}.../*.| * Handl|
|00003900| 65 72 20 66 6f 72 20 4f | 70 65 6e 20 44 6f 63 75 |er for O|pen Docu|
|00003910| 6d 65 6e 74 20 6f 72 20 | 50 72 69 6e 74 20 44 6f |ment or |Print Do|
|00003920| 63 75 6d 65 6e 74 20 41 | 70 70 6c 65 20 45 76 65 |cument A|pple Eve|
|00003930| 6e 74 73 2e 0d 20 2a 20 | 52 65 66 65 72 65 6e 63 |nts.. * |Referenc|
|00003940| 65 20 63 6f 6e 73 74 61 | 6e 74 20 69 73 20 30 20 |e consta|nt is 0 |
|00003950| 66 6f 72 20 4f 70 65 6e | 2c 20 31 20 66 6f 72 20 |for Open|, 1 for |
|00003960| 50 72 69 6e 74 2e 0d 20 | 2a 20 4e 6f 74 65 20 74 |Print.. |* Note t|
|00003970| 68 61 74 20 69 74 20 6d | 75 73 74 20 62 65 20 61 |hat it m|ust be a|
|00003980| 20 70 61 73 63 61 6c 20 | 66 75 6e 63 74 69 6f 6e | pascal |function|
|00003990| 21 0d 20 2a 2f 0d 0d 73 | 74 61 74 69 63 20 70 61 |!. */..s|tatic pa|
|000039a0| 73 63 61 6c 20 4f 53 45 | 72 72 0d 41 45 4f 70 65 |scal OSE|rr.AEOpe|
|000039b0| 6e 4f 72 50 72 69 6e 74 | 44 6f 63 20 28 41 70 70 |nOrPrint|Doc (App|
|000039c0| 6c 65 45 76 65 6e 74 20 | 2a 74 68 65 41 45 76 74 |leEvent |*theAEvt|
|000039d0| 2c 20 41 70 70 6c 65 45 | 76 65 6e 74 20 2a 72 65 |, AppleE|vent *re|
|000039e0| 70 6c 79 45 76 74 2c 20 | 6c 6f 6e 67 20 72 65 66 |plyEvt, |long ref|
|000039f0| 43 6f 6e 29 0d 7b 0d 6c | 6f 6e 67 09 09 69 74 65 |Con).{.l|ong..ite|
|00003a00| 6d 73 2c 20 69 6e 64 65 | 78 3b 0d 46 53 53 70 65 |ms, inde|x;.FSSpe|
|00003a10| 63 09 09 6d 79 46 53 53 | 3b 0d 41 45 44 65 73 63 |c..myFSS|;.AEDesc|
|00003a20| 4c 69 73 74 09 64 6f 63 | 4c 69 73 74 3b 0d 41 45 |List.doc|List;.AE|
|00003a30| 4b 65 79 77 6f 72 64 09 | 6b 65 79 77 64 3b 0d 44 |Keyword.|keywd;.D|
|00003a40| 65 73 63 54 79 70 65 09 | 72 65 74 75 72 6e 65 64 |escType.|returned|
|00003a50| 54 79 70 65 3b 0d 6c 6f | 6e 67 09 09 61 63 74 75 |Type;.lo|ng..actu|
|00003a60| 61 6c 53 69 7a 65 3b 0d | 4f 53 45 72 72 09 09 6d |alSize;.|OSErr..m|
|00003a70| 79 45 72 72 3b 0d 0d 09 | 69 66 20 28 72 65 66 43 |yErr;...|if (refC|
|00003a80| 6f 6e 20 3d 3d 20 30 4c | 29 0d 09 09 44 69 73 70 |on == 0L|)...Disp|
|00003a90| 6c 61 79 53 74 72 69 6e | 67 20 28 22 5c 70 4f 70 |layStrin|g ("\pOp|
|00003aa0| 65 6e 20 44 6f 63 75 6d | 65 6e 74 20 41 70 70 6c |en Docum|ent Appl|
|00003ab0| 65 20 65 76 65 6e 74 22 | 29 3b 0d 09 65 6c 73 65 |e event"|);..else|
|00003ac0| 0d 09 09 44 69 73 70 6c | 61 79 53 74 72 69 6e 67 |...Displ|ayString|
|00003ad0| 20 28 22 5c 70 50 72 69 | 6e 74 20 44 6f 63 75 6d | ("\pPri|nt Docum|
|00003ae0| 65 6e 74 20 41 70 70 6c | 65 20 65 76 65 6e 74 22 |ent Appl|e event"|
|00003af0| 29 3b 0d 09 44 69 73 70 | 6c 61 79 4c 6e 20 28 29 |);..Disp|layLn ()|
|00003b00| 3b 0d 09 6d 79 45 72 72 | 20 3d 20 41 45 47 65 74 |;..myErr| = AEGet|
|00003b10| 50 61 72 61 6d 44 65 73 | 63 20 28 74 68 65 41 45 |ParamDes|c (theAE|
|00003b20| 76 74 2c 20 6b 65 79 44 | 69 72 65 63 74 4f 62 6a |vt, keyD|irectObj|
|00003b30| 65 63 74 2c 20 74 79 70 | 65 41 45 4c 69 73 74 2c |ect, typ|eAEList,|
|00003b40| 20 26 64 6f 63 4c 69 73 | 74 29 3b 0d 09 69 66 20 | &docLis|t);..if |
|00003b50| 28 6d 79 45 72 72 20 21 | 3d 20 6e 6f 45 72 72 29 |(myErr !|= noErr)|
|00003b60| 0d 09 09 72 65 74 75 72 | 6e 20 28 6d 79 45 72 72 |...retur|n (myErr|
|00003b70| 29 3b 0d 0d 09 2f 2a 20 | 73 68 6f 75 6c 64 20 63 |);.../* |should c|
|00003b80| 68 65 63 6b 20 66 6f 72 | 20 6d 69 73 73 69 6e 67 |heck for| missing|
|00003b90| 20 72 65 71 75 69 72 65 | 64 20 70 61 72 61 6d 65 | require|d parame|
|00003ba0| 74 65 72 73 20 68 65 72 | 65 20 2a 2f 0d 0d 09 44 |ters her|e */...D|
|00003bb0| 69 73 70 6c 61 79 53 74 | 72 69 6e 67 20 28 22 5c |isplaySt|ring ("\|
|00003bc0| 70 4e 75 6d 62 65 72 20 | 6f 66 20 69 74 65 6d 73 |pNumber |of items|
|00003bd0| 3a 20 22 29 3b 0d 09 69 | 66 20 28 28 6d 79 45 72 |: ");..i|f ((myEr|
|00003be0| 72 20 3d 20 41 45 43 6f | 75 6e 74 49 74 65 6d 73 |r = AECo|untItems|
|00003bf0| 20 28 26 64 6f 63 4c 69 | 73 74 2c 20 26 69 74 65 | (&docLi|st, &ite|
|00003c00| 6d 73 29 29 20 21 3d 20 | 6e 6f 45 72 72 29 0d 09 |ms)) != |noErr)..|
|00003c10| 7b 0d 09 09 44 69 73 70 | 6c 61 79 53 74 72 69 6e |{...Disp|layStrin|
|00003c20| 67 20 28 22 5c 70 28 63 | 6f 75 6c 64 6e 27 74 20 |g ("\p(c|ouldn't |
|00003c30| 74 65 6c 6c 20 2d 20 65 | 72 72 6f 72 20 6f 63 63 |tell - e|rror occ|
|00003c40| 75 72 72 65 64 29 22 29 | 3b 0d 09 09 44 69 73 70 |urred)")|;...Disp|
|00003c50| 6c 61 79 4c 6e 20 28 29 | 3b 0d 09 09 72 65 74 75 |layLn ()|;...retu|
|00003c60| 72 6e 20 28 6d 79 45 72 | 72 29 3b 0d 09 7d 0d 09 |rn (myEr|r);..}..|
|00003c70| 44 69 73 70 6c 61 79 4c | 6f 6e 67 20 28 69 74 65 |DisplayL|ong (ite|
|00003c80| 6d 73 29 3b 0d 09 44 69 | 73 70 6c 61 79 4c 6e 20 |ms);..Di|splayLn |
|00003c90| 28 29 3b 0d 09 66 6f 72 | 20 28 69 6e 64 65 78 20 |();..for| (index |
|00003ca0| 3d 20 31 3b 20 69 6e 64 | 65 78 20 3c 3d 20 69 74 |= 1; ind|ex <= it|
|00003cb0| 65 6d 73 3b 20 69 6e 64 | 65 78 2b 2b 29 0d 09 7b |ems; ind|ex++)..{|
|00003cc0| 0d 09 09 6d 79 45 72 72 | 20 3d 20 41 45 47 65 74 |...myErr| = AEGet|
|00003cd0| 4e 74 68 50 74 72 20 28 | 26 64 6f 63 4c 69 73 74 |NthPtr (|&docList|
|00003ce0| 2c 20 69 6e 64 65 78 2c | 20 74 79 70 65 46 53 53 |, index,| typeFSS|
|00003cf0| 2c 20 26 6b 65 79 77 64 | 2c 20 26 72 65 74 75 72 |, &keywd|, &retur|
|00003d00| 6e 65 64 54 79 70 65 2c | 0d 09 09 09 09 09 09 26 |nedType,|.......&|
|00003d10| 6d 79 46 53 53 2c 20 73 | 69 7a 65 6f 66 20 28 6d |myFSS, s|izeof (m|
|00003d20| 79 46 53 53 29 2c 20 26 | 61 63 74 75 61 6c 53 69 |yFSS), &|actualSi|
|00003d30| 7a 65 29 3b 0d 09 09 69 | 66 20 28 6d 79 45 72 72 |ze);...i|f (myErr|
|00003d40| 20 21 3d 20 6e 6f 45 72 | 72 29 0d 09 09 09 72 65 | != noEr|r)....re|
|00003d50| 74 75 72 6e 20 28 6d 79 | 45 72 72 29 3b 0d 09 09 |turn (my|Err);...|
|00003d60| 44 69 73 70 6c 61 79 53 | 74 72 69 6e 67 20 28 22 |DisplayS|tring ("|
|00003d70| 5c 70 49 74 65 6d 20 22 | 29 3b 0d 09 09 44 69 73 |\pItem "|);...Dis|
|00003d80| 70 6c 61 79 4c 6f 6e 67 | 20 28 69 6e 64 65 78 29 |playLong| (index)|
|00003d90| 3b 0d 09 09 44 69 73 70 | 6c 61 79 53 74 72 69 6e |;...Disp|layStrin|
|00003da0| 67 20 28 22 5c 70 3a 20 | 6e 61 6d 65 20 3d 20 22 |g ("\p: |name = "|
|00003db0| 29 3b 0d 09 09 44 69 73 | 70 6c 61 79 53 74 72 69 |);...Dis|playStri|
|00003dc0| 6e 67 20 28 28 53 74 72 | 69 6e 67 50 74 72 29 20 |ng ((Str|ingPtr) |
|00003dd0| 6d 79 46 53 53 2e 6e 61 | 6d 65 29 3b 0d 09 09 44 |myFSS.na|me);...D|
|00003de0| 69 73 70 6c 61 79 53 74 | 72 69 6e 67 20 28 22 5c |isplaySt|ring ("\|
|00003df0| 70 2c 20 76 52 65 66 4e | 75 6d 20 3d 20 22 29 3b |p, vRefN|um = ");|
|00003e00| 0d 09 09 44 69 73 70 6c | 61 79 53 68 6f 72 74 20 |...Displ|ayShort |
|00003e10| 28 6d 79 46 53 53 2e 76 | 52 65 66 4e 75 6d 29 3b |(myFSS.v|RefNum);|
|00003e20| 0d 09 09 44 69 73 70 6c | 61 79 53 74 72 69 6e 67 |...Displ|ayString|
|00003e30| 20 28 22 5c 70 2c 20 70 | 61 72 49 44 20 3d 20 22 | ("\p, p|arID = "|
|00003e40| 29 3b 0d 09 09 44 69 73 | 70 6c 61 79 4c 6f 6e 67 |);...Dis|playLong|
|00003e50| 20 28 6d 79 46 53 53 2e | 70 61 72 49 44 29 3b 0d | (myFSS.|parID);.|
|00003e60| 09 09 44 69 73 70 6c 61 | 79 4c 6e 20 28 29 3b 0d |..Displa|yLn ();.|
|00003e70| 09 7d 0d 09 6d 79 45 72 | 72 20 3d 20 41 45 44 69 |.}..myEr|r = AEDi|
|00003e80| 73 70 6f 73 65 44 65 73 | 63 20 28 26 64 6f 63 4c |sposeDes|c (&docL|
|00003e90| 69 73 74 29 3b 0d 09 72 | 65 74 75 72 6e 20 28 6d |ist);..r|eturn (m|
|00003ea0| 79 45 72 72 29 3b 0d 7d | 0d 0d 0d 2f 2a 0d 20 2a |yErr);.}|.../*. *|
|00003eb0| 20 48 61 6e 64 6c 65 72 | 20 66 6f 72 20 41 70 70 | Handler| for App|
|00003ec0| 6c 69 63 61 74 69 6f 6e | 20 44 69 65 64 20 41 70 |lication| Died Ap|
|00003ed0| 70 6c 65 20 45 76 65 6e | 74 2e 0d 20 2a 20 54 68 |ple Even|t.. * Th|
|00003ee0| 69 73 20 77 69 6c 6c 20 | 62 65 20 63 61 6c 6c 65 |is will |be calle|
|00003ef0| 64 20 69 66 2f 77 68 65 | 6e 20 61 6e 79 20 61 70 |d if/whe|n any ap|
|00003f00| 70 6c 69 63 61 74 69 6f | 6e 20 6c 61 75 6e 63 68 |plicatio|n launch|
|00003f10| 65 64 20 62 79 20 73 65 | 6c 65 63 74 69 6e 67 0d |ed by se|lecting.|
|00003f20| 20 2a 20 46 69 6c 65 2f | 4c 61 75 6e 63 68 20 65 | * File/|Launch e|
|00003f30| 78 69 74 73 2e 0d 20 2a | 20 4e 6f 74 65 20 74 68 |xits.. *| Note th|
|00003f40| 61 74 20 69 74 20 6d 75 | 73 74 20 62 65 20 61 20 |at it mu|st be a |
|00003f50| 70 61 73 63 61 6c 20 66 | 75 6e 63 74 69 6f 6e 21 |pascal f|unction!|
|00003f60| 0d 20 2a 2f 0d 0d 73 74 | 61 74 69 63 20 70 61 73 |. */..st|atic pas|
|00003f70| 63 61 6c 20 4f 53 45 72 | 72 0d 41 45 41 70 70 44 |cal OSEr|r.AEAppD|
|00003f80| 69 65 64 20 28 41 70 70 | 6c 65 45 76 65 6e 74 20 |ied (App|leEvent |
|00003f90| 2a 74 68 65 41 45 76 74 | 2c 20 41 70 70 6c 65 45 |*theAEvt|, AppleE|
|00003fa0| 76 65 6e 74 20 2a 72 65 | 70 6c 79 45 76 74 2c 20 |vent *re|plyEvt, |
|00003fb0| 6c 6f 6e 67 20 72 65 66 | 43 6f 6e 29 0d 7b 0d 4f |long ref|Con).{.O|
|00003fc0| 53 45 72 72 09 09 6d 79 | 45 72 72 3b 0d 4f 53 45 |SErr..my|Err;.OSE|
|00003fd0| 72 72 09 09 61 70 70 44 | 69 65 64 45 72 72 3b 0d |rr..appD|iedErr;.|
|00003fe0| 44 65 73 63 54 79 70 65 | 09 72 65 74 75 72 6e 65 |DescType|.returne|
|00003ff0| 64 54 79 70 65 3b 0d 6c | 6f 6e 67 09 09 61 63 74 |dType;.l|ong..act|
|00004000| 75 61 6c 53 69 7a 65 3b | 0d 50 72 6f 63 65 73 73 |ualSize;|.Process|
|00004010| 53 65 72 69 61 6c 4e 75 | 6d 62 65 72 09 70 73 6e |SerialNu|mber.psn|
|00004020| 3b 0d 0d 09 44 69 73 70 | 6c 61 79 53 74 72 69 6e |;...Disp|layStrin|
|00004030| 67 20 28 22 5c 70 41 70 | 70 6c 69 63 61 74 69 6f |g ("\pAp|plicatio|
|00004040| 6e 20 44 69 65 64 20 41 | 70 70 6c 65 20 65 76 65 |n Died A|pple eve|
|00004050| 6e 74 22 29 3b 0d 09 44 | 69 73 70 6c 61 79 4c 6e |nt");..D|isplayLn|
|00004060| 20 28 29 3b 0d 0d 09 44 | 69 73 70 6c 61 79 53 74 | ();...D|isplaySt|
|00004070| 72 69 6e 67 20 28 22 5c | 70 50 72 6f 63 65 73 73 |ring ("\|pProcess|
|00004080| 20 73 65 72 69 61 6c 20 | 6e 75 6d 62 65 72 3a 20 | serial |number: |
|00004090| 22 29 3b 0d 09 6d 79 45 | 72 72 20 3d 20 41 45 47 |");..myE|rr = AEG|
|000040a0| 65 74 50 61 72 61 6d 50 | 74 72 20 28 74 68 65 41 |etParamP|tr (theA|
|000040b0| 45 76 74 2c 20 6b 65 79 | 50 72 6f 63 65 73 73 53 |Evt, key|ProcessS|
|000040c0| 65 72 69 61 6c 4e 75 6d | 62 65 72 2c 20 74 79 70 |erialNum|ber, typ|
|000040d0| 65 50 72 6f 63 65 73 73 | 53 65 72 69 61 6c 4e 75 |eProcess|SerialNu|
|000040e0| 6d 62 65 72 2c 0d 09 09 | 09 09 09 09 09 09 26 72 |mber,...|......&r|
|000040f0| 65 74 75 72 6e 65 64 54 | 79 70 65 2c 20 26 70 73 |eturnedT|ype, &ps|
|00004100| 6e 2c 20 73 69 7a 65 6f | 66 20 28 70 73 6e 29 2c |n, sizeo|f (psn),|
|00004110| 20 26 61 63 74 75 61 6c | 53 69 7a 65 29 3b 0d 09 | &actual|Size);..|
|00004120| 69 66 20 28 6d 79 45 72 | 72 20 3d 3d 20 6e 6f 45 |if (myEr|r == noE|
|00004130| 72 72 29 0d 09 7b 0d 09 | 09 44 69 73 70 6c 61 79 |rr)..{..|.Display|
|00004140| 4c 6f 6e 67 20 28 70 73 | 6e 2e 68 69 67 68 4c 6f |Long (ps|n.highLo|
|00004150| 6e 67 4f 66 50 53 4e 29 | 3b 0d 09 09 44 69 73 70 |ngOfPSN)|;...Disp|
|00004160| 6c 61 79 43 68 61 72 20 | 28 27 2f 27 29 3b 0d 09 |layChar |('/');..|
|00004170| 09 44 69 73 70 6c 61 79 | 4c 6f 6e 67 20 28 70 73 |.Display|Long (ps|
|00004180| 6e 2e 6c 6f 77 4c 6f 6e | 67 4f 66 50 53 4e 29 3b |n.lowLon|gOfPSN);|
|00004190| 0d 09 7d 0d 09 65 6c 73 | 65 0d 09 09 44 69 73 70 |..}..els|e...Disp|
|000041a0| 6c 61 79 53 74 72 69 6e | 67 20 28 22 5c 70 63 6f |layStrin|g ("\pco|
|000041b0| 75 6c 64 20 6e 6f 74 20 | 67 65 74 20 70 73 6e 2e |uld not |get psn.|
|000041c0| 22 29 3b 0d 09 44 69 73 | 70 6c 61 79 4c 6e 20 28 |");..Dis|playLn (|
|000041d0| 29 3b 0d 0d 09 44 69 73 | 70 6c 61 79 53 74 72 69 |);...Dis|playStri|
|000041e0| 6e 67 20 28 22 5c 70 52 | 65 74 75 72 6e 20 73 74 |ng ("\pR|eturn st|
|000041f0| 61 74 75 73 3a 20 22 29 | 3b 0d 09 6d 79 45 72 72 |atus: ")|;..myErr|
|00004200| 20 3d 20 41 45 47 65 74 | 50 61 72 61 6d 50 74 72 | = AEGet|ParamPtr|
|00004210| 20 28 74 68 65 41 45 76 | 74 2c 20 6b 65 79 45 72 | (theAEv|t, keyEr|
|00004220| 72 6f 72 4e 75 6d 62 65 | 72 2c 20 74 79 70 65 4c |rorNumbe|r, typeL|
|00004230| 6f 6e 67 49 6e 74 65 67 | 65 72 2c 0d 09 09 09 09 |ongInteg|er,.....|
|00004240| 09 09 26 72 65 74 75 72 | 6e 65 64 54 79 70 65 2c |..&retur|nedType,|
|00004250| 20 26 61 70 70 44 69 65 | 64 45 72 72 2c 20 73 69 | &appDie|dErr, si|
|00004260| 7a 65 6f 66 20 28 61 70 | 70 44 69 65 64 45 72 72 |zeof (ap|pDiedErr|
|00004270| 29 2c 20 26 61 63 74 75 | 61 6c 53 69 7a 65 29 3b |), &actu|alSize);|
|00004280| 0d 09 69 66 20 28 6d 79 | 45 72 72 20 3d 3d 20 6e |..if (my|Err == n|
|00004290| 6f 45 72 72 29 0d 09 09 | 44 69 73 70 6c 61 79 4c |oErr)...|DisplayL|
|000042a0| 6f 6e 67 20 28 61 70 70 | 44 69 65 64 45 72 72 29 |ong (app|DiedErr)|
|000042b0| 3b 0d 09 65 6c 73 65 0d | 09 09 44 69 73 70 6c 61 |;..else.|..Displa|
|000042c0| 79 53 74 72 69 6e 67 20 | 28 22 5c 70 63 6f 75 6c |yString |("\pcoul|
|000042d0| 64 20 6e 6f 74 20 67 65 | 74 20 72 65 74 75 72 6e |d not ge|t return|
|000042e0| 20 73 74 61 74 75 73 2e | 22 29 3b 0d 09 44 69 73 | status.|");..Dis|
|000042f0| 70 6c 61 79 4c 6e 20 28 | 29 3b 0d 0d 09 2f 2a 20 |playLn (|);.../* |
|00004300| 73 68 6f 75 6c 64 20 63 | 68 65 63 6b 20 66 6f 72 |should c|heck for|
|00004310| 20 6d 69 73 73 69 6e 67 | 20 72 65 71 75 69 72 65 | missing| require|
|00004320| 64 20 70 61 72 61 6d 65 | 74 65 72 73 20 68 65 72 |d parame|ters her|
|00004330| 65 20 2a 2f 0d 0d 09 72 | 65 74 75 72 6e 20 28 6e |e */...r|eturn (n|
|00004340| 6f 45 72 72 29 3b 0d 7d | 0d 0d 0d 2f 2a 20 2d 2d |oErr);.}|.../* --|
|00004350| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004360| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004370| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004380| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 20 2a 2f 0d 2f 2a |--------|-- */./*|
|00004390| 09 09 09 45 76 65 6e 74 | 20 53 65 6c 65 63 74 69 |...Event| Selecti|
|000043a0| 6f 6e 20 57 69 6e 64 6f | 77 20 48 61 6e 64 6c 65 |on Windo|w Handle|
|000043b0| 72 20 52 6f 75 74 69 6e | 65 73 09 09 09 09 2a 2f |r Routin|es....*/|
|000043c0| 0d 2f 2a 20 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |./* ----|--------|
|000043d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000043e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000043f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004400| 20 2a 2f 0d 0d 0d 2f 2a | 0d 09 41 63 74 69 76 61 | */.../*|..Activa|
|00004410| 74 65 20 65 76 65 6e 74 | 20 70 72 6f 63 65 64 75 |te event| procedu|
|00004420| 72 65 20 66 6f 72 20 62 | 6f 74 68 20 64 69 73 70 |re for b|oth disp|
|00004430| 6c 61 79 20 77 69 6e 64 | 6f 77 73 20 61 6e 64 20 |lay wind|ows and |
|00004440| 74 68 65 20 63 68 65 63 | 6b 62 6f 78 0d 09 77 69 |the chec|kbox..wi|
|00004450| 6e 64 6f 77 2e 0d 2a 2f | 0d 0d 73 74 61 74 69 63 |ndow..*/|..static|
|00004460| 20 70 61 73 63 61 6c 20 | 76 6f 69 64 0d 41 63 74 | pascal |void.Act|
|00004470| 69 76 61 74 65 20 28 42 | 6f 6f 6c 65 61 6e 20 61 |ivate (B|oolean a|
|00004480| 63 74 69 76 65 29 0d 7b | 0d 7d 0d 0d 2f 2a 0d 09 |ctive).{|.}../*..|
|00004490| 55 70 64 61 74 65 20 77 | 69 6e 64 6f 77 2e 20 20 |Update w|indow. |
|000044a0| 54 68 69 73 20 69 73 20 | 65 61 73 79 2c 20 6a 75 |This is |easy, ju|
|000044b0| 73 74 20 64 72 61 77 20 | 74 68 65 20 63 6f 6e 74 |st draw |the cont|
|000044c0| 72 6f 6c 73 2e 0d 2a 2f | 0d 0d 73 74 61 74 69 63 |rols..*/|..static|
|000044d0| 20 70 61 73 63 61 6c 20 | 76 6f 69 64 0d 55 70 64 | pascal |void.Upd|
|000044e0| 61 74 65 20 28 42 6f 6f | 6c 65 61 6e 20 72 65 73 |ate (Boo|lean res|
|000044f0| 69 7a 65 64 29 0d 7b 0d | 09 44 72 61 77 43 6f 6e |ized).{.|.DrawCon|
|00004500| 74 72 6f 6c 73 20 28 73 | 65 6c 65 63 74 57 69 6e |trols (s|electWin|
|00004510| 64 29 3b 0d 7d 0d 0d 0d | 2f 2a 0d 09 48 61 6e 64 |d);.}...|/*..Hand|
|00004520| 6c 65 20 68 69 74 73 20 | 69 6e 20 63 68 65 63 6b |le hits |in check|
|00004530| 20 62 6f 78 65 73 20 6f | 66 20 73 65 6c 65 63 74 | boxes o|f select|
|00004540| 69 6f 6e 20 77 69 6e 64 | 6f 77 3a 0d 09 54 6f 67 |ion wind|ow:..Tog|
|00004550| 67 6c 65 20 63 68 65 63 | 6b 20 62 6f 78 2c 20 73 |gle chec|k box, s|
|00004560| 79 6e 63 20 74 68 65 20 | 61 73 73 6f 63 69 61 74 |ync the |associat|
|00004570| 65 64 20 66 6c 61 67 2c | 20 61 6e 64 20 65 6e 61 |ed flag,| and ena|
|00004580| 62 6c 65 20 6f 72 20 64 | 69 73 61 62 6c 65 0d 09 |ble or d|isable..|
|00004590| 61 6e 79 20 73 75 62 73 | 69 64 69 61 72 79 20 63 |any subs|idiary c|
|000045a0| 68 65 63 6b 20 62 6f 78 | 65 73 20 61 63 63 6f 72 |heck box|es accor|
|000045b0| 64 69 6e 67 6c 79 2e 20 | 20 28 53 75 62 73 69 64 |dingly. | (Subsid|
|000045c0| 69 61 72 69 65 73 20 68 | 61 76 65 0d 09 69 6e 66 |iaries h|ave..inf|
|000045d0| 6f 72 6d 61 74 69 6f 6e | 20 69 6e 20 74 68 65 20 |ormation| in the |
|000045e0| 63 6f 6e 74 72 6f 6c 20 | 73 74 72 75 63 74 75 72 |control |structur|
|000045f0| 65 20 74 68 61 74 20 70 | 6f 69 6e 74 73 20 62 61 |e that p|oints ba|
|00004600| 63 6b 20 74 6f 20 74 68 | 65 20 6f 77 6e 65 72 0d |ck to th|e owner.|
|00004610| 09 63 68 65 63 6b 20 62 | 6f 78 2e 29 0d 0d 2a 2f |.check b|ox.)..*/|
|00004620| 0d 0d 73 74 61 74 69 63 | 20 70 61 73 63 61 6c 20 |..static| pascal |
|00004630| 76 6f 69 64 0d 4d 6f 75 | 73 65 20 28 50 6f 69 6e |void.Mou|se (Poin|
|00004640| 74 20 74 68 65 50 74 2c | 20 6c 6f 6e 67 20 74 2c |t thePt,| long t,|
|00004650| 20 73 68 6f 72 74 20 6d | 6f 64 73 29 0d 7b 0d 43 | short m|ods).{.C|
|00004660| 6f 6e 74 72 6f 6c 48 61 | 6e 64 6c 65 09 63 74 6c |ontrolHa|ndle.ctl|
|00004670| 3b 0d 43 74 72 6c 49 6e | 66 6f 09 09 2a 63 69 3b |;.CtrlIn|fo..*ci;|
|00004680| 0d 42 6f 6f 6c 65 61 6e | 09 09 09 76 61 6c 3b 0d |.Boolean|...val;.|
|00004690| 73 68 6f 72 74 09 09 09 | 69 3b 0d 0d 09 69 66 20 |short...|i;...if |
|000046a0| 28 46 69 6e 64 43 6f 6e | 74 72 6f 6c 20 28 74 68 |(FindCon|trol (th|
|000046b0| 65 50 74 2c 20 73 65 6c | 65 63 74 57 69 6e 64 2c |ePt, sel|ectWind,|
|000046c0| 20 26 63 74 6c 29 29 0d | 09 7b 0d 09 09 69 66 20 | &ctl)).|.{...if |
|000046d0| 28 54 72 61 63 6b 43 6f | 6e 74 72 6f 6c 20 28 63 |(TrackCo|ntrol (c|
|000046e0| 74 6c 2c 20 74 68 65 50 | 74 2c 20 6e 69 6c 29 29 |tl, theP|t, nil))|
|000046f0| 0d 09 09 7b 0d 09 09 09 | 63 69 20 3d 20 28 43 74 |...{....|ci = (Ct|
|00004700| 72 6c 49 6e 66 6f 20 2a | 29 20 47 65 74 43 52 65 |rlInfo *|) GetCRe|
|00004710| 66 43 6f 6e 20 28 63 74 | 6c 29 3b 0d 09 09 09 76 |fCon (ct|l);....v|
|00004720| 61 6c 20 3d 20 21 47 65 | 74 43 74 6c 56 61 6c 75 |al = !Ge|tCtlValu|
|00004730| 65 20 28 63 74 6c 29 3b | 0d 09 09 09 2a 28 63 69 |e (ctl);|....*(ci|
|00004740| 2d 3e 66 6c 61 67 41 64 | 64 72 29 20 3d 20 76 61 |->flagAd|dr) = va|
|00004750| 6c 3b 0d 09 09 09 53 65 | 74 43 74 6c 56 61 6c 75 |l;....Se|tCtlValu|
|00004760| 65 20 28 63 74 6c 2c 20 | 76 61 6c 29 3b 0d 09 09 |e (ctl, |val);...|
|00004770| 0d 09 09 09 2f 2a 20 65 | 6e 61 62 6c 65 2f 64 69 |..../* e|nable/di|
|00004780| 73 61 62 6c 65 20 61 6e | 79 20 73 75 62 73 69 64 |sable an|y subsid|
|00004790| 69 61 72 69 65 73 20 2a | 2f 0d 09 09 0d 09 09 09 |iaries *|/.......|
|000047a0| 66 6f 72 20 28 69 20 3d | 20 30 3b 20 69 20 3c 20 |for (i =| 0; i < |
|000047b0| 6d 61 78 42 75 74 74 6f | 6e 3b 20 2b 2b 69 29 0d |maxButto|n; ++i).|
|000047c0| 09 09 09 7b 0d 09 09 09 | 09 69 66 20 28 63 74 72 |...{....|.if (ctr|
|000047d0| 6c 49 6e 66 6f 5b 69 5d | 2e 73 75 62 49 6e 66 6f |lInfo[i]|.subInfo|
|000047e0| 2d 3e 63 74 72 6c 20 3d | 3d 20 63 69 2d 3e 63 74 |->ctrl =|= ci->ct|
|000047f0| 72 6c 29 0d 09 09 09 09 | 09 48 69 6c 69 74 65 43 |rl).....|.HiliteC|
|00004800| 6f 6e 74 72 6f 6c 20 28 | 63 74 72 6c 49 6e 66 6f |ontrol (|ctrlInfo|
|00004810| 5b 69 5d 2e 63 74 72 6c | 2c 20 76 61 6c 20 3f 20 |[i].ctrl|, val ? |
|00004820| 30 20 3a 20 32 35 35 29 | 3b 0d 09 09 09 7d 0d 09 |0 : 255)|;....}..|
|00004830| 09 7d 0d 09 7d 0d 7d 0d | 0d 0d 2f 2a 20 2d 2d 2d |.}..}.}.|../* ---|
|00004840| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004850| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004860| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004870| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 20 2a 2f 0d 2f 2a 09 |--------|- */./*.|
|00004880| 09 09 4d 65 6e 75 20 48 | 6f 6f 6b 20 61 6e 64 20 |..Menu H|ook and |
|00004890| 4d 65 6e 75 20 48 61 6e | 64 6c 65 72 20 52 6f 75 |Menu Han|dler Rou|
|000048a0| 74 69 6e 65 73 09 09 09 | 09 09 2a 2f 0d 2f 2a 20 |tines...|..*/./* |
|000048b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000048c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000048d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000048e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 20 2a 2f 0d |--------|---- */.|
|000048f0| 0d 0d 2f 2a 0d 20 2a 20 | 4d 65 6e 75 20 68 6f 6f |../*. * |Menu hoo|
|00004900| 6b 20 70 72 6f 63 65 64 | 75 72 65 2e 20 20 43 68 |k proced|ure. Ch|
|00004910| 65 63 6b 20 66 72 6f 6e | 74 20 77 69 6e 64 6f 77 |eck fron|t window|
|00004920| 2c 20 72 65 73 65 74 20 | 65 64 69 74 20 6d 65 6e |, reset |edit men|
|00004930| 75 20 64 65 70 65 6e 64 | 69 6e 67 20 6f 6e 0d 20 |u depend|ing on. |
|00004940| 2a 20 77 68 65 74 68 65 | 72 20 66 72 6f 6e 74 20 |* whethe|r front |
|00004950| 77 69 6e 64 6f 77 20 69 | 73 20 61 6e 20 61 70 70 |window i|s an app|
|00004960| 6c 69 63 61 74 69 6f 6e | 20 77 69 6e 64 6f 77 20 |lication| window |
|00004970| 6f 72 20 61 20 44 41 20 | 77 69 6e 64 6f 77 20 28 |or a DA |window (|
|00004980| 69 74 65 6d 73 20 61 72 | 65 0d 20 2a 20 6f 6e 6c |items ar|e. * onl|
|00004990| 79 20 61 63 74 69 76 65 | 20 66 6f 72 20 61 20 44 |y active| for a D|
|000049a0| 41 20 77 69 6e 64 6f 77 | 29 2e 0d 20 2a 2f 0d 0d |A window|).. */..|
|000049b0| 73 74 61 74 69 63 20 70 | 61 73 63 61 6c 20 76 6f |static p|ascal vo|
|000049c0| 69 64 0d 4d 79 4d 65 6e | 75 48 6f 6f 6b 20 28 76 |id.MyMen|uHook (v|
|000049d0| 6f 69 64 29 0d 7b 0d 57 | 69 6e 64 6f 77 50 74 72 |oid).{.W|indowPtr|
|000049e0| 09 77 3b 0d 73 68 6f 72 | 74 09 09 74 68 65 4b 69 |.w;.shor|t..theKi|
|000049f0| 6e 64 3b 0d 0d 09 44 69 | 73 61 62 6c 65 49 74 65 |nd;...Di|sableIte|
|00004a00| 6d 20 28 65 64 69 74 4d | 65 6e 75 2c 20 75 6e 64 |m (editM|enu, und|
|00004a10| 6f 29 3b 0d 09 44 69 73 | 61 62 6c 65 49 74 65 6d |o);..Dis|ableItem|
|00004a20| 20 28 65 64 69 74 4d 65 | 6e 75 2c 20 63 75 74 29 | (editMe|nu, cut)|
|00004a30| 3b 0d 09 44 69 73 61 62 | 6c 65 49 74 65 6d 20 28 |;..Disab|leItem (|
|00004a40| 65 64 69 74 4d 65 6e 75 | 2c 20 63 6f 70 79 29 3b |editMenu|, copy);|
|00004a50| 0d 09 44 69 73 61 62 6c | 65 49 74 65 6d 20 28 65 |..Disabl|eItem (e|
|00004a60| 64 69 74 4d 65 6e 75 2c | 20 70 61 73 74 65 29 3b |ditMenu,| paste);|
|00004a70| 0d 09 44 69 73 61 62 6c | 65 49 74 65 6d 20 28 65 |..Disabl|eItem (e|
|00004a80| 64 69 74 4d 65 6e 75 2c | 20 63 6c 65 61 72 29 3b |ditMenu,| clear);|
|00004a90| 0d 0d 09 69 66 20 28 28 | 77 20 3d 20 46 72 6f 6e |...if ((|w = Fron|
|00004aa0| 74 57 69 6e 64 6f 77 20 | 28 29 29 20 21 3d 20 28 |tWindow |()) != (|
|00004ab0| 57 69 6e 64 6f 77 50 74 | 72 29 20 6e 69 6c 29 0d |WindowPt|r) nil).|
|00004ac0| 09 7b 0d 09 09 69 66 20 | 28 28 28 57 69 6e 64 6f |.{...if |(((Windo|
|00004ad0| 77 50 65 65 6b 29 20 77 | 29 2d 3e 77 69 6e 64 6f |wPeek) w|)->windo|
|00004ae0| 77 4b 69 6e 64 20 3c 20 | 30 29 09 2f 2a 20 44 41 |wKind < |0)./* DA|
|00004af0| 20 69 6e 20 66 72 6f 6e | 74 20 2a 2f 0d 09 09 7b | in fron|t */...{|
|00004b00| 0d 09 09 09 45 6e 61 62 | 6c 65 49 74 65 6d 20 28 |....Enab|leItem (|
|00004b10| 65 64 69 74 4d 65 6e 75 | 2c 20 75 6e 64 6f 29 3b |editMenu|, undo);|
|00004b20| 0d 09 09 09 45 6e 61 62 | 6c 65 49 74 65 6d 20 28 |....Enab|leItem (|
|00004b30| 65 64 69 74 4d 65 6e 75 | 2c 20 63 75 74 29 3b 0d |editMenu|, cut);.|
|00004b40| 09 09 09 45 6e 61 62 6c | 65 49 74 65 6d 20 28 65 |...Enabl|eItem (e|
|00004b50| 64 69 74 4d 65 6e 75 2c | 20 63 6f 70 79 29 3b 0d |ditMenu,| copy);.|
|00004b60| 09 09 09 45 6e 61 62 6c | 65 49 74 65 6d 20 28 65 |...Enabl|eItem (e|
|00004b70| 64 69 74 4d 65 6e 75 2c | 20 70 61 73 74 65 29 3b |ditMenu,| paste);|
|00004b80| 0d 09 09 09 45 6e 61 62 | 6c 65 49 74 65 6d 20 28 |....Enab|leItem (|
|00004b90| 65 64 69 74 4d 65 6e 75 | 2c 20 63 6c 65 61 72 29 |editMenu|, clear)|
|00004ba0| 3b 0d 09 09 7d 0d 09 7d | 0d 7d 0d 0d 0d 2f 2a 0d |;...}..}|.}.../*.|
|00004bb0| 20 2a 20 48 61 6e 64 6c | 65 20 73 65 6c 65 63 74 | * Handl|e select|
|00004bc0| 69 6f 6e 20 6f 66 20 41 | 62 6f 75 74 2e 2e 2e 20 |ion of A|bout... |
|00004bd0| 69 74 65 6d 20 66 72 6f | 6d 20 41 70 70 6c 65 20 |item fro|m Apple |
|00004be0| 6d 65 6e 75 2e 0d 20 2a | 20 55 73 65 20 6f 66 20 |menu.. *| Use of |
|00004bf0| 53 6b 65 6c 44 6c 6f 67 | 46 69 6c 74 65 72 28 29 |SkelDlog|Filter()|
|00004c00| 20 69 73 20 69 6d 70 6f | 72 74 61 6e 74 20 68 65 | is impo|rtant he|
|00004c10| 72 65 20 62 65 63 61 75 | 73 65 20 69 74 20 6d 61 |re becau|se it ma|
|00004c20| 6b 65 73 0d 20 2a 20 73 | 75 72 65 20 74 68 65 20 |kes. * s|ure the |
|00004c30| 65 76 65 6e 74 20 68 6f | 6f 6b 20 69 73 20 63 61 |event ho|ok is ca|
|00004c40| 6c 6c 65 64 20 65 76 65 | 6e 20 77 68 69 6c 65 20 |lled eve|n while |
|00004c50| 74 68 65 20 61 6c 65 72 | 74 20 69 73 20 75 70 2e |the aler|t is up.|
|00004c60| 0d 20 2a 2f 0d 0d 73 74 | 61 74 69 63 20 70 61 73 |. */..st|atic pas|
|00004c70| 63 61 6c 20 76 6f 69 64 | 0d 44 6f 41 62 6f 75 74 |cal void|.DoAbout|
|00004c80| 20 28 73 68 6f 72 74 20 | 69 74 65 6d 29 0d 7b 0d | (short |item).{.|
|00004c90| 09 28 76 6f 69 64 29 20 | 53 6b 65 6c 41 6c 65 72 |.(void) |SkelAler|
|00004ca0| 74 20 28 61 62 6f 75 74 | 41 6c 72 74 52 65 73 2c |t (about|AlrtRes,|
|00004cb0| 20 53 6b 65 6c 44 6c 6f | 67 46 69 6c 74 65 72 20 | SkelDlo|gFilter |
|00004cc0| 28 6e 69 6c 2c 20 74 72 | 75 65 29 2c 0d 09 09 09 |(nil, tr|ue),....|
|00004cd0| 09 09 09 09 09 09 09 09 | 09 73 6b 65 6c 50 6f 73 |........|.skelPos|
|00004ce0| 69 74 69 6f 6e 4f 6e 50 | 61 72 65 6e 74 44 65 76 |itionOnP|arentDev|
|00004cf0| 69 63 65 29 3b 0d 09 53 | 6b 65 6c 52 6d 76 65 44 |ice);..S|kelRmveD|
|00004d00| 6c 6f 67 46 69 6c 74 65 | 72 20 28 29 3b 0d 7d 0d |logFilte|r ();.}.|
|00004d10| 0d 0d 2f 2a 0d 20 2a 20 | 46 69 6c 65 20 6d 65 6e |../*. * |File men|
|00004d20| 75 20 68 61 6e 64 6c 65 | 72 2e 0d 20 2a 0d 20 2a |u handle|r.. *. *|
|00004d30| 20 54 68 65 20 6c 61 75 | 6e 63 68 41 70 70 20 69 | The lau|nchApp i|
|00004d40| 74 65 6d 20 77 69 6c 6c | 20 62 65 20 64 69 73 61 |tem will| be disa|
|00004d50| 62 6c 65 20 61 6e 64 20 | 63 61 6e 6e 6f 74 20 62 |ble and |cannot b|
|00004d60| 65 20 73 65 6c 65 63 74 | 65 64 20 75 6e 6c 65 73 |e select|ed unles|
|00004d70| 73 0d 20 2a 20 74 68 65 | 20 73 79 73 74 65 6d 20 |s. * the| system |
|00004d80| 73 75 70 70 6f 72 74 73 | 20 74 68 65 20 6e 65 77 |supports| the new|
|00004d90| 20 73 74 61 6e 64 61 72 | 64 20 66 69 6c 65 20 64 | standar|d file d|
|00004da0| 69 61 6c 6f 67 73 20 61 | 6e 64 20 61 70 70 6c 69 |ialogs a|nd appli|
|00004db0| 63 61 74 69 6f 6e 0d 20 | 2a 20 6c 61 75 6e 63 68 |cation. |* launch|
|00004dc0| 69 6e 67 2e 0d 20 2a 2f | 0d 0d 73 74 61 74 69 63 |ing.. */|..static|
|00004dd0| 20 70 61 73 63 61 6c 20 | 76 6f 69 64 0d 44 6f 46 | pascal |void.DoF|
|00004de0| 69 6c 65 4d 65 6e 75 20 | 28 73 68 6f 72 74 20 69 |ileMenu |(short i|
|00004df0| 74 65 6d 29 0d 7b 0d 4c | 61 75 6e 63 68 50 61 72 |tem).{.L|aunchPar|
|00004e00| 61 6d 42 6c 6f 63 6b 52 | 65 63 09 6c 50 61 72 61 |amBlockR|ec.lPara|
|00004e10| 6d 73 3b 0d 53 74 61 6e | 64 61 72 64 46 69 6c 65 |ms;.Stan|dardFile|
|00004e20| 52 65 70 6c 79 09 61 70 | 70 53 46 52 3b 0d 53 46 |Reply.ap|pSFR;.SF|
|00004e30| 54 79 70 65 4c 69 73 74 | 09 09 09 74 79 70 65 73 |TypeList|...types|
|00004e40| 3b 0d 4f 53 45 72 72 09 | 09 09 09 6d 79 45 72 72 |;.OSErr.|...myErr|
|00004e50| 3b 0d 0d 09 73 77 69 74 | 63 68 20 28 69 74 65 6d |;...swit|ch (item|
|00004e60| 29 0d 09 7b 0d 09 63 61 | 73 65 20 73 68 6f 77 48 |)..{..ca|se showH|
|00004e70| 65 6c 70 3a 0d 09 09 53 | 65 6c 65 63 74 57 69 6e |elp:...S|electWin|
|00004e80| 64 6f 77 20 28 68 65 6c | 70 57 69 6e 64 29 3b 0d |dow (hel|pWind);.|
|00004e90| 09 09 53 68 6f 77 57 69 | 6e 64 6f 77 20 28 68 65 |..ShowWi|ndow (he|
|00004ea0| 6c 70 57 69 6e 64 29 3b | 0d 09 09 62 72 65 61 6b |lpWind);|...break|
|00004eb0| 3b 0d 09 0d 09 63 61 73 | 65 20 73 68 6f 77 53 65 |;....cas|e showSe|
|00004ec0| 6c 65 63 74 3a 0d 09 09 | 53 65 6c 65 63 74 57 69 |lect:...|SelectWi|
|00004ed0| 6e 64 6f 77 20 28 73 65 | 6c 65 63 74 57 69 6e 64 |ndow (se|lectWind|
|00004ee0| 29 3b 0d 09 09 53 68 6f | 77 57 69 6e 64 6f 77 20 |);...Sho|wWindow |
|00004ef0| 28 73 65 6c 65 63 74 57 | 69 6e 64 29 3b 0d 09 09 |(selectW|ind);...|
|00004f00| 62 72 65 61 6b 3b 0d 09 | 0d 09 63 61 73 65 20 73 |break;..|..case s|
|00004f10| 68 6f 77 4c 6f 67 3a 0d | 09 09 53 65 6c 65 63 74 |howLog:.|..Select|
|00004f20| 57 69 6e 64 6f 77 20 28 | 6c 6f 67 57 69 6e 64 29 |Window (|logWind)|
|00004f30| 3b 0d 09 09 53 68 6f 77 | 57 69 6e 64 6f 77 20 28 |;...Show|Window (|
|00004f40| 6c 6f 67 57 69 6e 64 29 | 3b 0d 09 09 62 72 65 61 |logWind)|;...brea|
|00004f50| 6b 3b 0d 09 0d 09 63 61 | 73 65 20 6c 61 75 6e 63 |k;....ca|se launc|
|00004f60| 68 41 70 70 3a 0d 09 09 | 74 79 70 65 73 5b 30 5d |hApp:...|types[0]|
|00004f70| 20 3d 20 27 41 50 50 4c | 27 3b 20 20 20 20 2f 2a | = 'APPL|'; /*|
|00004f80| 20 74 6f 20 6c 61 75 6e | 63 68 20 61 6e 79 20 61 | to laun|ch any a|
|00004f90| 70 70 6c 69 63 61 74 69 | 6f 6e 20 2a 2f 0d 09 09 |pplicati|on */...|
|00004fa0| 53 74 61 6e 64 61 72 64 | 47 65 74 46 69 6c 65 20 |Standard|GetFile |
|00004fb0| 28 6e 69 6c 2c 20 31 2c | 20 74 79 70 65 73 2c 20 |(nil, 1,| types, |
|00004fc0| 26 61 70 70 53 46 52 29 | 3b 09 09 0d 09 09 69 66 |&appSFR)|;.....if|
|00004fd0| 20 28 61 70 70 53 46 52 | 2e 73 66 47 6f 6f 64 29 | (appSFR|.sfGood)|
|00004fe0| 0d 09 09 7b 20 0d 09 09 | 09 0d 09 09 09 6c 50 61 |...{ ...|.....lPa|
|00004ff0| 72 61 6d 73 2e 6c 61 75 | 6e 63 68 42 6c 6f 63 6b |rams.lau|nchBlock|
|00005000| 49 44 20 3d 20 65 78 74 | 65 6e 64 65 64 42 6c 6f |ID = ext|endedBlo|
|00005010| 63 6b 3b 0d 09 09 09 6c | 50 61 72 61 6d 73 2e 6c |ck;....l|Params.l|
|00005020| 61 75 6e 63 68 45 50 42 | 4c 65 6e 67 74 68 20 3d |aunchEPB|Length =|
|00005030| 20 65 78 74 65 6e 64 65 | 64 42 6c 6f 63 6b 4c 65 | extende|dBlockLe|
|00005040| 6e 3b 0d 09 09 09 6c 50 | 61 72 61 6d 73 2e 6c 61 |n;....lP|arams.la|
|00005050| 75 6e 63 68 46 69 6c 65 | 46 6c 61 67 73 20 3d 20 |unchFile|Flags = |
|00005060| 30 3b 0d 09 09 09 6c 50 | 61 72 61 6d 73 2e 6c 61 |0;....lP|arams.la|
|00005070| 75 6e 63 68 43 6f 6e 74 | 72 6f 6c 46 6c 61 67 73 |unchCont|rolFlags|
|00005080| 20 3d 20 6c 61 75 6e 63 | 68 43 6f 6e 74 69 6e 75 | = launc|hContinu|
|00005090| 65 20 2b 20 6c 61 75 6e | 63 68 4e 6f 46 69 6c 65 |e + laun|chNoFile|
|000050a0| 46 6c 61 67 73 3b 0d 09 | 09 09 6c 50 61 72 61 6d |Flags;..|..lParam|
|000050b0| 73 2e 6c 61 75 6e 63 68 | 41 70 70 53 70 65 63 20 |s.launch|AppSpec |
|000050c0| 3d 20 26 28 61 70 70 53 | 46 52 2e 73 66 46 69 6c |= &(appS|FR.sfFil|
|000050d0| 65 29 3b 0d 09 09 09 6c | 50 61 72 61 6d 73 2e 6c |e);....l|Params.l|
|000050e0| 61 75 6e 63 68 41 70 70 | 50 61 72 61 6d 65 74 65 |aunchApp|Paramete|
|000050f0| 72 73 20 3d 20 6e 69 6c | 3b 0d 09 09 09 0d 09 09 |rs = nil|;.......|
|00005100| 09 69 66 20 28 28 6d 79 | 45 72 72 20 3d 20 4c 61 |.if ((my|Err = La|
|00005110| 75 6e 63 68 41 70 70 6c | 69 63 61 74 69 6f 6e 20 |unchAppl|ication |
|00005120| 28 26 6c 50 61 72 61 6d | 73 29 29 20 21 3d 20 6e |(&lParam|s)) != n|
|00005130| 6f 45 72 72 29 0d 09 09 | 09 7b 0d 09 09 09 09 44 |oErr)...|.{.....D|
|00005140| 69 73 70 6c 61 79 53 74 | 72 69 6e 67 20 28 22 5c |isplaySt|ring ("\|
|00005150| 70 4c 61 75 6e 63 68 20 | 66 61 69 6c 65 64 2c 20 |pLaunch |failed, |
|00005160| 65 72 72 6f 72 20 3d 20 | 5c 72 22 29 3b 0d 09 09 |error = |\r");...|
|00005170| 09 09 44 69 73 70 6c 61 | 79 4c 6f 6e 67 20 28 6d |..Displa|yLong (m|
|00005180| 79 45 72 72 29 3b 0d 09 | 09 09 09 44 69 73 70 6c |yErr);..|...Displ|
|00005190| 61 79 4c 6e 20 28 29 3b | 0d 09 09 09 7d 0d 09 09 |ayLn ();|....}...|
|000051a0| 7d 0d 09 09 62 72 65 61 | 6b 3b 0d 09 0d 09 63 61 |}...brea|k;....ca|
|000051b0| 73 65 20 71 75 69 74 3a | 0d 09 09 53 6b 65 6c 53 |se quit:|...SkelS|
|000051c0| 74 6f 70 45 76 65 6e 74 | 4c 6f 6f 70 20 28 29 3b |topEvent|Loop ();|
|000051d0| 0d 09 09 62 72 65 61 6b | 3b 0d 09 7d 0d 7d 0d 0d |...break|;..}.}..|
|000051e0| 2f 2a 0d 09 50 75 74 20 | 74 68 65 20 72 69 67 68 |/*..Put |the righ|
|000051f0| 74 20 63 68 65 63 6b 20 | 6d 61 72 6b 73 20 69 6e |t check |marks in|
|00005200| 20 74 68 65 20 4c 6f 67 | 20 6d 65 6e 75 0d 2a 2f | the Log| menu.*/|
|00005210| 0d 0d 73 74 61 74 69 63 | 20 70 61 73 63 61 6c 20 |..static| pascal |
|00005220| 76 6f 69 64 0d 53 65 74 | 4c 6f 67 4d 65 6e 75 20 |void.Set|LogMenu |
|00005230| 28 29 0d 7b 0d 09 43 68 | 65 63 6b 49 74 65 6d 20 |().{..Ch|eckItem |
|00005240| 28 6c 6f 67 4d 65 6e 75 | 2c 20 6c 6f 67 45 76 65 |(logMenu|, logEve|
|00005250| 6e 74 73 2c 20 72 65 70 | 6f 72 74 45 76 65 6e 74 |nts, rep|ortEvent|
|00005260| 73 29 3b 0d 09 43 68 65 | 63 6b 49 74 65 6d 20 28 |s);..Che|ckItem (|
|00005270| 6c 6f 67 4d 65 6e 75 2c | 20 65 78 63 6c 75 64 65 |logMenu,| exclude|
|00005280| 4c 57 69 6e 64 2c 20 65 | 78 63 6c 75 64 65 4c 6f |LWind, e|xcludeLo|
|00005290| 67 29 3b 0d 09 43 68 65 | 63 6b 49 74 65 6d 20 28 |g);..Che|ckItem (|
|000052a0| 6c 6f 67 4d 65 6e 75 2c | 20 77 72 61 70 53 74 79 |logMenu,| wrapSty|
|000052b0| 6c 65 2c 20 6c 6f 67 57 | 72 61 70 20 3e 3d 20 30 |le, logW|rap >= 0|
|000052c0| 29 3b 0d 09 43 68 65 63 | 6b 49 74 65 6d 20 28 6c |);..Chec|kItem (l|
|000052d0| 6f 67 4d 65 6e 75 2c 20 | 6c 65 66 74 4a 75 73 74 |ogMenu, |leftJust|
|000052e0| 2c 20 6c 6f 67 4a 75 73 | 74 20 3d 3d 20 74 65 4a |, logJus|t == teJ|
|000052f0| 75 73 74 4c 65 66 74 29 | 3b 0d 09 43 68 65 63 6b |ustLeft)|;..Check|
|00005300| 49 74 65 6d 20 28 6c 6f | 67 4d 65 6e 75 2c 20 63 |Item (lo|gMenu, c|
|00005310| 65 6e 74 65 72 4a 75 73 | 74 2c 20 6c 6f 67 4a 75 |enterJus|t, logJu|
|00005320| 73 74 20 3d 3d 20 74 65 | 4a 75 73 74 43 65 6e 74 |st == te|JustCent|
|00005330| 65 72 29 3b 0d 09 43 68 | 65 63 6b 49 74 65 6d 20 |er);..Ch|eckItem |
|00005340| 28 6c 6f 67 4d 65 6e 75 | 2c 20 72 69 67 68 74 4a |(logMenu|, rightJ|
|00005350| 75 73 74 2c 20 6c 6f 67 | 4a 75 73 74 20 3d 3d 20 |ust, log|Just == |
|00005360| 74 65 4a 75 73 74 52 69 | 67 68 74 29 3b 0d 09 43 |teJustRi|ght);..C|
|00005370| 68 65 63 6b 49 74 65 6d | 20 28 6c 6f 67 4d 65 6e |heckItem| (logMen|
|00005380| 75 2c 20 73 6d 61 6c 6c | 2c 20 6c 6f 67 53 69 7a |u, small|, logSiz|
|00005390| 65 20 3d 3d 20 39 29 3b | 0d 09 43 68 65 63 6b 49 |e == 9);|..CheckI|
|000053a0| 74 65 6d 20 28 6c 6f 67 | 4d 65 6e 75 2c 20 6d 65 |tem (log|Menu, me|
|000053b0| 64 69 75 6d 2c 20 6c 6f | 67 53 69 7a 65 20 3d 3d |dium, lo|gSize ==|
|000053c0| 20 31 32 29 3b 0d 09 43 | 68 65 63 6b 49 74 65 6d | 12);..C|heckItem|
|000053d0| 20 28 6c 6f 67 4d 65 6e | 75 2c 20 6c 61 72 67 65 | (logMen|u, large|
|000053e0| 2c 20 6c 6f 67 53 69 7a | 65 20 3d 3d 20 32 34 29 |, logSiz|e == 24)|
|000053f0| 3b 0d 7d 0d 0d 0d 2f 2a | 0d 09 53 65 74 20 64 69 |;.}.../*|..Set di|
|00005400| 73 70 6c 61 79 20 73 74 | 79 6c 65 20 6f 66 20 6c |splay st|yle of l|
|00005410| 6f 67 20 77 69 6e 64 6f | 77 0d 2a 2f 0d 0d 73 74 |og windo|w.*/..st|
|00005420| 61 74 69 63 20 76 6f 69 | 64 0d 53 65 74 53 74 79 |atic voi|d.SetSty|
|00005430| 6c 65 20 28 29 0d 7b 0d | 09 53 65 74 44 57 69 6e |le ().{.|.SetDWin|
|00005440| 64 6f 77 53 74 79 6c 65 | 20 28 6c 6f 67 57 69 6e |dowStyle| (logWin|
|00005450| 64 2c 20 6c 6f 67 46 6f | 6e 74 2c 20 6c 6f 67 53 |d, logFo|nt, logS|
|00005460| 69 7a 65 2c 20 6c 6f 67 | 57 72 61 70 2c 20 6c 6f |ize, log|Wrap, lo|
|00005470| 67 4a 75 73 74 29 3b 0d | 09 53 65 74 4c 6f 67 4d |gJust);.|.SetLogM|
|00005480| 65 6e 75 20 28 29 3b 0d | 7d 0d 0d 0d 2f 2a 0d 09 |enu ();.|}.../*..|
|00005490| 4c 6f 67 20 6d 65 6e 75 | 20 68 61 6e 64 6c 65 72 |Log menu| handler|
|000054a0| 0d 2a 2f 0d 0d 73 74 61 | 74 69 63 20 70 61 73 63 |.*/..sta|tic pasc|
|000054b0| 61 6c 20 76 6f 69 64 0d | 44 6f 4c 6f 67 4d 65 6e |al void.|DoLogMen|
|000054c0| 75 20 28 73 68 6f 72 74 | 20 69 74 65 6d 29 0d 7b |u (short| item).{|
|000054d0| 0d 09 73 77 69 74 63 68 | 20 28 69 74 65 6d 29 0d |..switch| (item).|
|000054e0| 09 7b 0d 09 63 61 73 65 | 20 6c 6f 67 45 76 65 6e |.{..case| logEven|
|000054f0| 74 73 3a 0d 09 09 72 65 | 70 6f 72 74 45 76 65 6e |ts:...re|portEven|
|00005500| 74 73 20 3d 20 21 72 65 | 70 6f 72 74 45 76 65 6e |ts = !re|portEven|
|00005510| 74 73 3b 0d 09 09 53 65 | 74 4c 6f 67 4d 65 6e 75 |ts;...Se|tLogMenu|
|00005520| 20 28 29 3b 0d 09 09 62 | 72 65 61 6b 3b 0d 0d 09 | ();...b|reak;...|
|00005530| 63 61 73 65 20 65 78 63 | 6c 75 64 65 4c 57 69 6e |case exc|ludeLWin|
|00005540| 64 3a 0d 09 09 65 78 63 | 6c 75 64 65 4c 6f 67 20 |d:...exc|ludeLog |
|00005550| 3d 20 21 65 78 63 6c 75 | 64 65 4c 6f 67 3b 0d 09 |= !exclu|deLog;..|
|00005560| 09 53 65 74 4c 6f 67 4d | 65 6e 75 20 28 29 3b 0d |.SetLogM|enu ();.|
|00005570| 09 09 62 72 65 61 6b 3b | 0d 0d 09 63 61 73 65 20 |..break;|...case |
|00005580| 66 6c 75 73 68 4c 6f 67 | 3a 0d 09 09 46 6c 75 73 |flushLog|:...Flus|
|00005590| 68 44 57 69 6e 64 6f 77 | 20 28 6c 6f 67 57 69 6e |hDWindow| (logWin|
|000055a0| 64 2c 20 33 32 37 36 37 | 4c 29 3b 0d 09 09 62 72 |d, 32767|L);...br|
|000055b0| 65 61 6b 3b 0d 09 0d 09 | 63 61 73 65 20 77 72 61 |eak;....|case wra|
|000055c0| 70 53 74 79 6c 65 3a 0d | 09 09 6c 6f 67 57 72 61 |pStyle:.|..logWra|
|000055d0| 70 20 3d 20 28 6c 6f 67 | 57 72 61 70 20 3e 3d 20 |p = (log|Wrap >= |
|000055e0| 30 20 3f 20 2d 31 20 3a | 20 30 29 3b 0d 09 09 53 |0 ? -1 :| 0);...S|
|000055f0| 65 74 53 74 79 6c 65 20 | 28 29 3b 0d 09 09 62 72 |etStyle |();...br|
|00005600| 65 61 6b 3b 0d 0d 09 63 | 61 73 65 20 6c 65 66 74 |eak;...c|ase left|
|00005610| 4a 75 73 74 3a 0d 09 09 | 6c 6f 67 4a 75 73 74 20 |Just:...|logJust |
|00005620| 3d 20 74 65 4a 75 73 74 | 4c 65 66 74 3b 0d 09 09 |= teJust|Left;...|
|00005630| 53 65 74 53 74 79 6c 65 | 20 28 29 3b 0d 09 09 62 |SetStyle| ();...b|
|00005640| 72 65 61 6b 3b 0d 0d 09 | 63 61 73 65 20 63 65 6e |reak;...|case cen|
|00005650| 74 65 72 4a 75 73 74 3a | 0d 09 09 6c 6f 67 4a 75 |terJust:|...logJu|
|00005660| 73 74 20 3d 20 74 65 4a | 75 73 74 43 65 6e 74 65 |st = teJ|ustCente|
|00005670| 72 3b 0d 09 09 53 65 74 | 53 74 79 6c 65 20 28 29 |r;...Set|Style ()|
|00005680| 3b 0d 09 09 62 72 65 61 | 6b 3b 0d 0d 09 63 61 73 |;...brea|k;...cas|
|00005690| 65 20 72 69 67 68 74 4a | 75 73 74 3a 0d 09 09 6c |e rightJ|ust:...l|
|000056a0| 6f 67 4a 75 73 74 20 3d | 20 74 65 4a 75 73 74 52 |ogJust =| teJustR|
|000056b0| 69 67 68 74 3b 0d 09 09 | 53 65 74 53 74 79 6c 65 |ight;...|SetStyle|
|000056c0| 20 28 29 3b 0d 09 09 62 | 72 65 61 6b 3b 0d 0d 09 | ();...b|reak;...|
|000056d0| 63 61 73 65 20 73 6d 61 | 6c 6c 3a 0d 09 09 6c 6f |case sma|ll:...lo|
|000056e0| 67 46 6f 6e 74 20 3d 20 | 6d 6f 6e 61 63 6f 3b 0d |gFont = |monaco;.|
|000056f0| 09 09 6c 6f 67 53 69 7a | 65 20 3d 20 39 3b 0d 09 |..logSiz|e = 9;..|
|00005700| 09 53 65 74 53 74 79 6c | 65 20 28 29 3b 0d 09 09 |.SetStyl|e ();...|
|00005710| 62 72 65 61 6b 3b 0d 0d | 09 63 61 73 65 20 6d 65 |break;..|.case me|
|00005720| 64 69 75 6d 3a 0d 09 09 | 6c 6f 67 46 6f 6e 74 20 |dium:...|logFont |
|00005730| 3d 20 73 79 73 74 65 6d | 46 6f 6e 74 3b 0d 09 09 |= system|Font;...|
|00005740| 6c 6f 67 53 69 7a 65 20 | 3d 20 31 32 3b 0d 09 09 |logSize |= 12;...|
|00005750| 53 65 74 53 74 79 6c 65 | 20 28 29 3b 0d 09 09 62 |SetStyle| ();...b|
|00005760| 72 65 61 6b 3b 0d 0d 09 | 63 61 73 65 20 6c 61 72 |reak;...|case lar|
|00005770| 67 65 3a 0d 09 09 6c 6f | 67 46 6f 6e 74 20 3d 20 |ge:...lo|gFont = |
|00005780| 67 65 6e 65 76 61 3b 0d | 09 09 6c 6f 67 53 69 7a |geneva;.|..logSiz|
|00005790| 65 20 3d 20 32 34 3b 0d | 09 09 53 65 74 53 74 79 |e = 24;.|..SetSty|
|000057a0| 6c 65 20 28 29 3b 0d 09 | 09 62 72 65 61 6b 3b 0d |le ();..|.break;.|
|000057b0| 0d 09 63 61 73 65 20 74 | 6f 70 3a 0d 09 09 53 65 |..case t|op:...Se|
|000057c0| 74 44 57 69 6e 64 6f 77 | 50 6f 73 20 28 6c 6f 67 |tDWindow|Pos (log|
|000057d0| 57 69 6e 64 2c 20 30 29 | 3b 0d 09 09 62 72 65 61 |Wind, 0)|;...brea|
|000057e0| 6b 3b 0d 0d 09 63 61 73 | 65 20 62 6f 74 74 6f 6d |k;...cas|e bottom|
|000057f0| 3a 0d 09 09 53 65 74 44 | 57 69 6e 64 6f 77 50 6f |:...SetD|WindowPo|
|00005800| 73 20 28 6c 6f 67 57 69 | 6e 64 2c 20 33 32 37 36 |s (logWi|nd, 3276|
|00005810| 37 29 3b 0d 09 09 62 72 | 65 61 6b 3b 0d 09 7d 0d |7);...br|eak;..}.|
|00005820| 7d 0d 0d 0d 2f 2a 0d 09 | 44 69 73 70 6f 73 65 20 |}.../*..|Dispose |
|00005830| 6f 66 20 65 76 65 6e 74 | 20 73 65 6c 65 63 74 69 |of event| selecti|
|00005840| 6f 6e 20 77 69 6e 64 6f | 77 20 28 61 6e 64 20 63 |on windo|w (and c|
|00005850| 6f 6e 74 72 6f 6c 73 29 | 0d 2a 2f 0d 0d 73 74 61 |ontrols)|.*/..sta|
|00005860| 74 69 63 20 70 61 73 63 | 61 6c 20 76 6f 69 64 0d |tic pasc|al void.|
|00005870| 57 43 6c 6f 62 62 65 72 | 20 28 76 6f 69 64 29 0d |WClobber| (void).|
|00005880| 7b 0d 09 44 69 73 70 6f | 73 65 57 69 6e 64 6f 77 |{..Dispo|seWindow|
|00005890| 20 28 73 65 6c 65 63 74 | 57 69 6e 64 29 3b 0d 7d | (select|Wind);.}|
|000058a0| 0d 0d 0d 0d 2f 2a 0d 09 | 43 72 65 61 74 65 20 63 |..../*..|Create c|
|000058b0| 6f 6e 74 72 6f 6c 73 0d | 2a 2f 0d 0d 73 74 61 74 |ontrols.|*/..stat|
|000058c0| 69 63 20 76 6f 69 64 0d | 4d 61 6b 65 43 6f 6e 74 |ic void.|MakeCont|
|000058d0| 72 6f 6c 73 20 28 74 68 | 65 57 69 6e 64 29 0d 57 |rols (th|eWind).W|
|000058e0| 69 6e 64 6f 77 50 74 72 | 09 74 68 65 57 69 6e 64 |indowPtr|.theWind|
|000058f0| 3b 0d 7b 0d 73 68 6f 72 | 74 09 09 69 3b 0d 43 74 |;.{.shor|t..i;.Ct|
|00005900| 72 6c 49 6e 66 6f 09 2a | 63 69 3b 0d 52 65 63 74 |rlInfo.*|ci;.Rect|
|00005910| 09 09 72 3b 0d 0d 09 66 | 6f 72 20 28 69 20 3d 20 |..r;...f|or (i = |
|00005920| 30 3b 20 69 20 3c 20 6d | 61 78 42 75 74 74 6f 6e |0; i < m|axButton|
|00005930| 3b 20 2b 2b 69 29 0d 09 | 7b 0d 09 09 63 69 20 3d |; ++i)..|{...ci =|
|00005940| 20 26 63 74 72 6c 49 6e | 66 6f 5b 69 5d 3b 0d 09 | &ctrlIn|fo[i];..|
|00005950| 09 53 65 74 52 65 63 74 | 20 28 26 72 2c 20 63 69 |.SetRect| (&r, ci|
|00005960| 2d 3e 6c 6f 63 2e 68 2c | 20 63 69 2d 3e 6c 6f 63 |->loc.h,| ci->loc|
|00005970| 2e 76 2c 0d 09 09 09 09 | 09 63 69 2d 3e 6c 6f 63 |.v,.....|.ci->loc|
|00005980| 2e 68 20 2b 20 53 74 72 | 69 6e 67 57 69 64 74 68 |.h + Str|ingWidth|
|00005990| 20 28 63 69 2d 3e 74 69 | 74 6c 65 29 20 2b 20 33 | (ci->ti|tle) + 3|
|000059a0| 30 2c 0d 09 09 09 09 09 | 63 69 2d 3e 6c 6f 63 2e |0,......|ci->loc.|
|000059b0| 76 20 2b 20 32 30 29 3b | 0d 09 09 63 69 2d 3e 63 |v + 20);|...ci->c|
|000059c0| 74 72 6c 20 3d 20 4e 65 | 77 43 6f 6e 74 72 6f 6c |trl = Ne|wControl|
|000059d0| 20 28 74 68 65 57 69 6e | 64 2c 20 26 72 2c 20 63 | (theWin|d, &r, c|
|000059e0| 69 2d 3e 74 69 74 6c 65 | 2c 20 74 72 75 65 2c 0d |i->title|, true,.|
|000059f0| 09 09 09 09 09 09 09 2a | 28 63 69 2d 3e 66 6c 61 |.......*|(ci->fla|
|00005a00| 67 41 64 64 72 29 2c 20 | 30 2c 20 31 2c 0d 09 09 |gAddr), |0, 1,...|
|00005a10| 09 09 09 09 09 63 68 65 | 63 6b 42 6f 78 50 72 6f |.....che|ckBoxPro|
|00005a20| 63 2c 20 28 6c 6f 6e 67 | 29 20 63 69 29 3b 0d 09 |c, (long|) ci);..|
|00005a30| 7d 0d 09 56 61 6c 69 64 | 52 65 63 74 20 28 26 74 |}..Valid|Rect (&t|
|00005a40| 68 65 57 69 6e 64 2d 3e | 70 6f 72 74 52 65 63 74 |heWind->|portRect|
|00005a50| 29 3b 0d 0d 09 2f 2a 0d | 09 20 2a 20 44 69 73 61 |);.../*.|. * Disa|
|00005a60| 62 6c 65 20 68 69 67 68 | 2d 6c 65 76 65 6c 20 62 |ble high|-level b|
|00005a70| 75 74 74 6f 6e 20 69 66 | 20 68 69 67 68 2d 6c 65 |utton if| high-le|
|00005a80| 76 65 6c 20 65 76 65 6e | 74 73 20 61 72 65 6e 27 |vel even|ts aren'|
|00005a90| 74 20 70 72 65 73 65 6e | 74 2e 0d 09 20 2a 20 28 |t presen|t... * (|
|00005aa0| 41 73 73 75 6d 65 73 20 | 68 69 67 68 2d 6c 65 76 |Assumes |high-lev|
|00005ab0| 65 6c 20 62 75 74 74 6f | 6e 20 69 73 20 6c 61 73 |el butto|n is las|
|00005ac0| 74 29 0d 09 20 2a 2f 0d | 09 69 66 20 28 21 72 48 |t).. */.|.if (!rH|
|00005ad0| 69 67 68 4c 65 76 65 6c | 29 0d 09 09 48 69 6c 69 |ighLevel|)...Hili|
|00005ae0| 74 65 43 6f 6e 74 72 6f | 6c 20 28 63 74 72 6c 49 |teContro|l (ctrlI|
|00005af0| 6e 66 6f 5b 6d 61 78 42 | 75 74 74 6f 6e 2d 31 5d |nfo[maxB|utton-1]|
|00005b00| 2e 63 74 72 6c 2c 20 32 | 35 35 29 3b 0d 7d 0d 0d |.ctrl, 2|55);.}..|
|00005b10| 2f 2a 0d 20 2a 20 48 61 | 6e 64 6c 65 20 73 75 73 |/*. * Ha|ndle sus|
|00005b20| 70 65 6e 64 2f 72 65 73 | 75 6d 65 20 65 76 65 6e |pend/res|ume even|
|00005b30| 74 73 2e 20 20 54 68 69 | 73 20 66 75 6e 63 74 69 |ts. Thi|s functi|
|00005b40| 6f 6e 20 69 73 20 63 61 | 6c 6c 65 64 20 6f 6e 6c |on is ca|lled onl|
|00005b50| 79 20 69 66 20 74 68 65 | 0d 20 2a 20 22 53 75 73 |y if the|. * "Sus|
|00005b60| 70 65 6e 64 20 26 20 52 | 65 73 75 6d 65 20 45 76 |pend & R|esume Ev|
|00005b70| 65 6e 74 73 22 20 62 69 | 74 20 69 73 20 73 65 74 |ents" bi|t is set|
|00005b80| 20 69 6e 20 74 68 65 20 | 27 53 49 5a 45 27 20 2d | in the |'SIZE' -|
|00005b90| 31 20 72 65 73 6f 75 72 | 63 65 2e 20 20 49 74 0d |1 resour|ce. It.|
|00005ba0| 20 2a 20 61 73 73 75 6d | 65 73 20 74 68 61 74 20 | * assum|es that |
|00005bb0| 74 68 65 20 22 4d 75 6c | 74 69 46 69 6e 64 65 72 |the "Mul|tiFinder|
|00005bc0| 2d 41 77 61 72 65 22 20 | 62 69 74 20 69 73 20 61 |-Aware" |bit is a|
|00005bd0| 6c 73 6f 20 73 65 74 2c | 20 77 68 69 63 68 20 6d |lso set,| which m|
|00005be0| 65 61 6e 73 20 74 68 61 | 74 0d 20 2a 20 74 68 65 |eans tha|t. * the|
|00005bf0| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 68 61 6e | applica|tion han|
|00005c00| 64 6c 65 73 20 61 63 74 | 69 76 61 74 65 2f 64 65 |dles act|ivate/de|
|00005c10| 61 63 74 69 76 61 74 65 | 20 6f 66 20 66 72 6f 6e |activate| of fron|
|00005c20| 74 6d 6f 73 74 20 77 69 | 6e 64 6f 77 20 6f 6e 0d |tmost wi|ndow on.|
|00005c30| 20 2a 20 73 75 73 70 65 | 6e 64 2f 72 65 73 75 6d | * suspe|nd/resum|
|00005c40| 65 3a 0d 20 2a 20 2d 20 | 4f 6e 20 61 20 73 75 73 |e:. * - |On a sus|
|00005c50| 70 65 6e 64 2c 20 64 65 | 61 63 74 69 76 61 74 65 |pend, de|activate|
|00005c60| 20 74 68 65 20 66 72 6f | 6e 74 6d 6f 73 74 20 77 | the fro|ntmost w|
|00005c70| 69 6e 64 6f 77 2e 0d 20 | 2a 20 2d 20 4f 6e 20 61 |indow.. |* - On a|
|00005c80| 20 72 65 73 75 6d 65 2c | 20 64 6f 6e 27 74 20 6a | resume,| don't j|
|00005c90| 75 73 74 20 62 6c 69 6e | 64 6c 79 20 61 63 74 69 |ust blin|dly acti|
|00005ca0| 76 61 74 65 20 74 68 65 | 20 66 72 6f 6e 74 6d 6f |vate the| frontmo|
|00005cb0| 73 74 20 77 69 6e 64 6f | 77 2e 20 20 54 68 65 0d |st windo|w. The.|
|00005cc0| 20 2a 20 75 73 65 72 20 | 6d 61 79 20 68 61 76 65 | * user |may have|
|00005cd0| 20 62 72 6f 75 67 68 74 | 20 74 68 65 20 61 70 70 | brought| the app|
|00005ce0| 6c 69 63 61 74 69 6f 6e | 20 74 6f 20 74 68 65 20 |lication| to the |
|00005cf0| 66 72 6f 6e 74 20 62 79 | 20 63 6c 69 63 6b 69 6e |front by| clickin|
|00005d00| 67 20 69 6e 20 73 6f 6d | 65 0d 20 2a 20 6f 74 68 |g in som|e. * oth|
|00005d10| 65 72 20 77 69 6e 64 6f | 77 2e 20 20 54 68 61 74 |er windo|w. That|
|00005d20| 20 63 6c 69 63 6b 20 77 | 69 6c 6c 20 62 72 69 6e | click w|ill brin|
|00005d30| 67 20 74 68 65 20 6f 74 | 68 65 72 20 77 69 6e 64 |g the ot|her wind|
|00005d40| 6f 77 20 74 6f 20 74 68 | 65 20 66 72 6f 6e 74 20 |ow to th|e front |
|00005d50| 77 68 65 6e 0d 20 2a 20 | 69 74 27 73 20 70 72 6f |when. * |it's pro|
|00005d60| 63 65 73 73 65 64 2c 20 | 73 6f 20 74 68 65 20 66 |cessed, |so the f|
|00005d70| 72 6f 6e 74 6d 6f 73 74 | 20 77 69 6e 64 6f 77 20 |rontmost| window |
|00005d80| 77 69 6c 6c 20 6a 75 73 | 74 20 69 6d 6d 65 64 69 |will jus|t immedi|
|00005d90| 61 74 65 6c 79 20 62 65 | 20 64 65 61 63 74 69 76 |ately be| deactiv|
|00005da0| 61 74 65 64 0d 20 2a 20 | 61 66 74 65 72 20 62 65 |ated. * |after be|
|00005db0| 69 6e 67 20 61 63 74 69 | 76 61 74 65 64 2e 20 20 |ing acti|vated. |
|00005dc0| 54 68 69 73 20 69 73 20 | 75 67 6c 79 2e 20 20 49 |This is |ugly. I|
|00005dd0| 6e 73 74 65 61 64 2c 20 | 63 68 65 63 6b 20 77 68 |nstead, |check wh|
|00005de0| 65 74 68 65 72 20 6f 72 | 20 6e 6f 74 20 61 0d 20 |ether or| not a. |
|00005df0| 2a 20 6d 6f 75 73 65 20 | 63 6c 69 63 6b 20 69 73 |* mouse |click is|
|00005e00| 20 69 6e 20 74 68 65 20 | 65 76 65 6e 74 20 71 75 | in the |event qu|
|00005e10| 65 75 65 2e 20 20 49 66 | 20 69 74 20 69 73 2c 20 |eue. If| it is, |
|00005e20| 61 6e 64 20 69 74 27 73 | 20 61 20 63 6c 69 63 6b |and it's| a click|
|00005e30| 20 69 6e 20 74 68 65 0d | 20 2a 20 66 72 6f 6e 74 | in the.| * front|
|00005e40| 6d 6f 73 74 20 77 69 6e | 64 6f 77 2c 20 61 63 74 |most win|dow, act|
|00005e50| 69 76 61 74 65 20 74 68 | 61 74 20 77 69 6e 64 6f |ivate th|at windo|
|00005e60| 77 2e 20 20 4f 74 68 65 | 72 77 69 73 65 2c 20 64 |w. Othe|rwise, d|
|00005e70| 6f 6e 27 74 20 61 63 74 | 69 76 61 74 65 20 61 6e |on't act|ivate an|
|00005e80| 79 74 68 69 6e 67 2e 0d | 20 2a 20 57 68 65 6e 20 |ything..| * When |
|00005e90| 74 68 65 20 63 6c 69 63 | 6b 20 69 73 20 70 72 6f |the clic|k is pro|
|00005ea0| 63 65 73 73 65 64 2c 20 | 74 68 65 20 72 69 67 68 |cessed, |the righ|
|00005eb0| 74 20 77 69 6e 64 6f 77 | 20 77 69 6c 6c 20 62 65 |t window| will be|
|00005ec0| 20 61 63 74 69 76 61 74 | 65 64 2e 0d 20 2a 2f 0d | activat|ed.. */.|
|00005ed0| 0d 73 74 61 74 69 63 20 | 70 61 73 63 61 6c 20 76 |.static |pascal v|
|00005ee0| 6f 69 64 0d 44 6f 53 75 | 73 70 65 6e 64 52 65 73 |oid.DoSu|spendRes|
|00005ef0| 75 6d 65 20 28 42 6f 6f | 6c 65 61 6e 20 69 6e 46 |ume (Boo|lean inF|
|00005f00| 6f 72 65 67 72 6f 75 6e | 64 29 0d 7b 0d 45 76 65 |oregroun|d).{.Eve|
|00005f10| 6e 74 52 65 63 6f 72 64 | 09 65 76 65 6e 74 3b 0d |ntRecord|.event;.|
|00005f20| 57 69 6e 64 6f 77 50 74 | 72 09 77 20 3d 20 46 72 |WindowPt|r.w = Fr|
|00005f30| 6f 6e 74 57 69 6e 64 6f | 77 20 28 29 3b 0d 47 72 |ontWindo|w ();.Gr|
|00005f40| 61 66 50 74 72 09 09 65 | 76 65 6e 74 50 6f 72 74 |afPtr..e|ventPort|
|00005f50| 3b 0d 42 6f 6f 6c 65 61 | 6e 09 09 64 6f 41 63 74 |;.Boolea|n..doAct|
|00005f60| 69 76 61 74 65 3b 0d 0d | 09 69 66 20 28 21 69 6e |ivate;..|.if (!in|
|00005f70| 46 6f 72 65 67 72 6f 75 | 6e 64 29 09 09 2f 2a 20 |Foregrou|nd)../* |
|00005f80| 73 75 73 70 65 6e 64 20 | 69 73 20 69 6d 6d 69 6e |suspend |is immin|
|00005f90| 65 6e 74 20 2a 2f 0d 09 | 7b 0d 09 09 53 6b 65 6c |ent */..|{...Skel|
|00005fa0| 41 63 74 69 76 61 74 65 | 20 28 77 2c 20 66 61 6c |Activate| (w, fal|
|00005fb0| 73 65 29 3b 0d 09 7d 0d | 09 65 6c 73 65 09 09 09 |se);..}.|.else...|
|00005fc0| 09 09 2f 2a 20 72 65 73 | 75 6d 65 20 69 73 20 69 |../* res|ume is i|
|00005fd0| 6d 6d 69 6e 65 6e 74 20 | 2a 2f 0d 09 7b 0d 09 09 |mminent |*/..{...|
|00005fe0| 64 6f 41 63 74 69 76 61 | 74 65 20 3d 20 74 72 75 |doActiva|te = tru|
|00005ff0| 65 3b 0d 09 09 69 66 20 | 28 45 76 65 6e 74 41 76 |e;...if |(EventAv|
|00006000| 61 69 6c 20 28 6d 44 6f | 77 6e 4d 61 73 6b 2c 20 |ail (mDo|wnMask, |
|00006010| 26 65 76 65 6e 74 29 29 | 0d 09 09 7b 0d 09 09 09 |&event))|...{....|
|00006020| 28 76 6f 69 64 29 20 46 | 69 6e 64 57 69 6e 64 6f |(void) F|indWindo|
|00006030| 77 20 28 65 76 65 6e 74 | 2e 77 68 65 72 65 2c 20 |w (event|.where, |
|00006040| 26 65 76 65 6e 74 50 6f | 72 74 29 3b 0d 09 09 09 |&eventPo|rt);....|
|00006050| 69 66 20 28 65 76 65 6e | 74 50 6f 72 74 20 21 3d |if (even|tPort !=|
|00006060| 20 77 29 0d 09 09 09 09 | 64 6f 41 63 74 69 76 61 | w).....|doActiva|
|00006070| 74 65 20 3d 20 66 61 6c | 73 65 3b 0d 09 09 7d 0d |te = fal|se;...}.|
|00006080| 09 09 69 66 20 28 64 6f | 41 63 74 69 76 61 74 65 |..if (do|Activate|
|00006090| 29 0d 09 09 09 53 6b 65 | 6c 41 63 74 69 76 61 74 |)....Ske|lActivat|
|000060a0| 65 20 28 77 2c 20 74 72 | 75 65 29 3b 0d 09 7d 0d |e (w, tr|ue);..}.|
|000060b0| 7d 0d 0d 0d 69 6e 74 0d | 6d 61 69 6e 20 28 29 0d |}...int.|main ().|
|000060c0| 7b 0d 48 61 6e 64 6c 65 | 09 68 3b 0d 6c 6f 6e 67 |{.Handle|.h;.long|
|000060d0| 09 72 65 73 75 6c 74 3b | 0d 0d 09 53 6b 65 6c 49 |.result;|...SkelI|
|000060e0| 6e 69 74 20 28 28 53 6b | 65 6c 49 6e 69 74 50 61 |nit ((Sk|elInitPa|
|000060f0| 72 61 6d 73 50 74 72 29 | 20 6e 69 6c 29 3b 0d 0d |ramsPtr)| nil);..|
|00006100| 09 2f 2a 0d 09 20 2a 20 | 49 66 20 41 70 70 6c 65 |./*.. * |If Apple|
|00006110| 20 45 76 65 6e 74 73 20 | 61 72 65 20 61 76 61 69 | Events |are avai|
|00006120| 6c 61 62 6c 65 2c 20 69 | 6e 73 74 61 6c 6c 20 68 |lable, i|nstall h|
|00006130| 61 6e 64 6c 65 72 73 20 | 66 6f 72 20 74 68 65 20 |andlers |for the |
|00006140| 63 6f 72 65 20 72 65 71 | 75 69 72 65 64 0d 09 20 |core req|uired.. |
|00006150| 2a 20 65 76 65 6e 74 73 | 2c 20 61 6e 64 20 74 68 |* events|, and th|
|00006160| 65 20 41 70 70 6c 69 63 | 61 74 69 6f 6e 20 44 69 |e Applic|ation Di|
|00006170| 65 64 20 65 76 65 6e 74 | 2e 0d 09 20 2a 2f 0d 0d |ed event|... */..|
|00006180| 09 69 66 20 28 21 53 6b | 65 6c 51 75 65 72 79 20 |.if (!Sk|elQuery |
|00006190| 28 73 6b 65 6c 51 48 61 | 73 41 70 70 6c 65 45 76 |(skelQHa|sAppleEv|
|000061a0| 65 6e 74 73 29 29 0d 09 | 09 72 48 69 67 68 4c 65 |ents))..|.rHighLe|
|000061b0| 76 65 6c 20 3d 20 66 61 | 6c 73 65 3b 0d 09 65 6c |vel = fa|lse;..el|
|000061c0| 73 65 0d 09 7b 0d 09 09 | 53 6b 65 6c 53 65 74 41 |se..{...|SkelSetA|
|000061d0| 45 48 61 6e 64 6c 65 72 | 20 28 4c 6f 67 41 70 70 |EHandler| (LogApp|
|000061e0| 6c 65 45 76 65 6e 74 29 | 3b 0d 09 09 69 66 20 28 |leEvent)|;...if (|
|000061f0| 41 45 49 6e 73 74 61 6c | 6c 45 76 65 6e 74 48 61 |AEInstal|lEventHa|
|00006200| 6e 64 6c 65 72 20 28 6b | 43 6f 72 65 45 76 65 6e |ndler (k|CoreEven|
|00006210| 74 43 6c 61 73 73 2c 20 | 6b 41 45 4f 70 65 6e 41 |tClass, |kAEOpenA|
|00006220| 70 70 6c 69 63 61 74 69 | 6f 6e 2c 0d 09 09 09 09 |pplicati|on,.....|
|00006230| 09 09 09 09 09 09 41 45 | 4f 70 65 6e 4f 72 51 75 |......AE|OpenOrQu|
|00006240| 69 74 41 70 70 2c 20 30 | 4c 2c 20 66 61 6c 73 65 |itApp, 0|L, false|
|00006250| 29 20 21 3d 20 6e 6f 45 | 72 72 29 0d 09 09 09 44 |) != noE|rr)....D|
|00006260| 69 73 70 6c 61 79 53 74 | 72 69 6e 67 20 28 22 5c |isplaySt|ring ("\|
|00006270| 70 41 45 49 6e 73 74 61 | 6c 6c 45 76 65 6e 74 48 |pAEInsta|llEventH|
|00006280| 61 6e 64 6c 65 72 20 66 | 61 69 6c 65 64 20 28 4f |andler f|ailed (O|
|00006290| 70 65 6e 20 41 70 70 6c | 69 63 61 74 69 6f 6e 29 |pen Appl|ication)|
|000062a0| 5c 72 22 29 3b 0d 09 09 | 69 66 20 28 41 45 49 6e |\r");...|if (AEIn|
|000062b0| 73 74 61 6c 6c 45 76 65 | 6e 74 48 61 6e 64 6c 65 |stallEve|ntHandle|
|000062c0| 72 20 28 6b 43 6f 72 65 | 45 76 65 6e 74 43 6c 61 |r (kCore|EventCla|
|000062d0| 73 73 2c 20 6b 41 45 51 | 75 69 74 41 70 70 6c 69 |ss, kAEQ|uitAppli|
|000062e0| 63 61 74 69 6f 6e 2c 0d | 09 09 09 09 09 09 09 09 |cation,.|........|
|000062f0| 09 09 41 45 4f 70 65 6e | 4f 72 51 75 69 74 41 70 |..AEOpen|OrQuitAp|
|00006300| 70 2c 20 31 4c 2c 20 66 | 61 6c 73 65 29 20 21 3d |p, 1L, f|alse) !=|
|00006310| 20 6e 6f 45 72 72 29 0d | 09 09 09 44 69 73 70 6c | noErr).|...Displ|
|00006320| 61 79 53 74 72 69 6e 67 | 20 28 22 5c 70 41 45 49 |ayString| ("\pAEI|
|00006330| 6e 73 74 61 6c 6c 45 76 | 65 6e 74 48 61 6e 64 6c |nstallEv|entHandl|
|00006340| 65 72 20 66 61 69 6c 65 | 64 20 28 51 75 69 74 20 |er faile|d (Quit |
|00006350| 41 70 70 6c 69 63 61 74 | 69 6f 6e 29 5c 72 22 29 |Applicat|ion)\r")|
|00006360| 3b 0d 09 09 69 66 20 28 | 41 45 49 6e 73 74 61 6c |;...if (|AEInstal|
|00006370| 6c 45 76 65 6e 74 48 61 | 6e 64 6c 65 72 20 28 6b |lEventHa|ndler (k|
|00006380| 43 6f 72 65 45 76 65 6e | 74 43 6c 61 73 73 2c 20 |CoreEven|tClass, |
|00006390| 6b 41 45 4f 70 65 6e 44 | 6f 63 75 6d 65 6e 74 73 |kAEOpenD|ocuments|
|000063a0| 2c 0d 09 09 09 09 09 09 | 09 09 09 09 41 45 4f 70 |,.......|....AEOp|
|000063b0| 65 6e 4f 72 50 72 69 6e | 74 44 6f 63 2c 20 30 4c |enOrPrin|tDoc, 0L|
|000063c0| 2c 20 66 61 6c 73 65 29 | 20 21 3d 20 6e 6f 45 72 |, false)| != noEr|
|000063d0| 72 29 0d 09 09 09 44 69 | 73 70 6c 61 79 53 74 72 |r)....Di|splayStr|
|000063e0| 69 6e 67 20 28 22 5c 70 | 41 45 49 6e 73 74 61 6c |ing ("\p|AEInstal|
|000063f0| 6c 45 76 65 6e 74 48 61 | 6e 64 6c 65 72 20 66 61 |lEventHa|ndler fa|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.